I'm trying to make SSH connection from Windows 10 (using cwrsync) to an Ubuntu server on Digital Ocean.

I configured the RSA keys both on the client side (windows) and on the server side (ubuntu), but when I run the command ssh -v root @ serverIP, the message Roaming not allowed by server appears and then asks me to log in with the password .

Looking on the internet, the staff says that it is to change the permissions of the /root/.ssh folder to 700 and the /root/.ssh/authorized_keys file to 600, but I have already done that and it has not resolved.

If I disable password login in the sshd_config file, I get the following error message when trying to connect via ssh: Permission denied (publickey).

  • Hard to tell from what you posted. The message about roaming is a red herring and unrelated to your login problem. See superuser.com/questions/825634/… .
    – Panther
    Oct 9, 2017 at 8:25
  • By default , on the Ubuntu server, you can not log into ssh as root via password. How did you configure your Ubuntu ssh server ? How did you make the keys ? How did you transfer the key between the ubuntu server and windows ?
    – Panther
    Oct 9, 2017 at 8:26
  • On the client side, windows, or cwrsync, whatever that is, you specify the key ssh -i key_name root@server See help.ubuntu.com/community/SSH/OpenSSH/Keys
    – Panther
    Oct 9, 2017 at 8:28
  • There are two different problems: first ssh into the machine as root, second make it password-less using RSA keys. Is the first part working?
    – user334639
    Oct 9, 2017 at 8:31
  • Hi, please review this answer.
    – pa4080
    Oct 9, 2017 at 9:31

1 Answer 1


I installed the latest version of openSSH on my windows, deleted the user's .ssh folder and generated a new key, after that I was able to connect to the server using SSH without having to enter a password.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .