You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

user opc cant edit file using winscp so trying to allow root to ssh

Received Response

End goal: edit files using winscp

for me, login as opc then sudo give the privilege of root >>> makes no security sense.

So, could you please help me allowing root to ssh.

  • i edited sshd_config witht he following: PermitRootLogin without-password and changed port 22
  • sudo semanage port -a -t ssh_port_t -p tcp 2345
  • restarted systemctl restart sshd.service

now port is changed but when i try to ssh as root i get the following output then ssh terminates:

Using username "root". Authenticating with public key "imported-openssh-key" Please login as the user "opc" rather than the user "root".

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!