On Thu, 08 Mar 2012 14:19:44 +0100
"LLLActive@GMX.Net"
I can not physically get to another server where I have the same problem with the 'PasswordAuthentication no". Is there another method to get to it? It is a virtual server at an ISP :( Is there a way to override these settings when logging in with ssh?
I can think of four approaches to this problem: a. If you're certain 'ssh-copy-id user@IP-or-domain.tld' worked, you may have a way into the box, but the login attempt must originate from an account using the correct public / private key pair. This account cannot be root on the local system because that is what caused your original password request problem. Try this: Create a new user on your local system and temporarily copy root's ~/.ssh/* into ~/newuser/.ssh/ (make sure to select the original 'root' that was used to create the correct public / private key pair and don't forget to chmod -R newuser:users ~/newuser/.ssh) Then try passwordless login from the new local user's account via 'ssh user@domain.tld'. If this gets you in, repair sshd_config on the remote system and restart sshd b. If you have X installed and VNC access to a desktop on the remote VPS you can sign into the desktop there, open a terminal, 'su -' to root privileges, use vi to repair /etc/ssh/sshd_config, run 'rcsshd restart' and then you ought to be close to where you first started. c. As has already been mentioned, many VPS providers supply a control panel with some form of 'emergency' access to the VPS's filesystem for just these kinds of circumstances. d. If you can IM or voice chat (Skype or telephone) a support person at the VPS provider they have root access to the host system and can repair sshd_config for you and restart sshd. They might need your root password for the VPS, which is why I recommend IM or voice so you're not sending this through e-mail. hth, good luck & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org