user opc cant edit file using winscp so trying to allow root to ssh
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".