[opensuse] ssh without password
In "man ssh" I read: The user creates his/her key pair by running ssh-keygen(1). This stores the private key in [...] ~/.ssh/id_rsa (RSA) and stores the public key in [...] ~/.ssh/id_rsa.pub (RSA) in the user's home directory. The user should then copy the public key to ~/.ssh/authorized_keys in his/her home directory on the remote machine. The authorized_keys file corresponds to the conventional ~/.rhosts file, and has one key per line, though the lines can be very long. After this, the user can log in without giving the password. I followed these instructions. But the remote system still continues asking for a password. Only root can login without specifying a password. Thank you in advance for your help, Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
In "man ssh" I read:
The user creates his/her key pair by running ssh-keygen(1). This stores the private key in [...] ~/.ssh/id_rsa (RSA) and stores the public key in [...] ~/.ssh/id_rsa.pub (RSA) in the user's home directory. The user should then copy the public key to ~/.ssh/authorized_keys in his/her home directory on the remote machine. The authorized_keys file corresponds to the conventional ~/.rhosts file, and has one key per line, though the lines can be very long. After this, the user can log in without giving the password.
I followed these instructions. But the remote system still continues asking for a password. Only root can login without specifying a password.
Thank you in advance for your help, Wolfgang Do this, as your user: ssh-copy-id user@remote_host Replace user with your username, remote_host by the remote IP or domain name.
Op woensdag 27 november 2019 19:21:27 CET schreef Wolfgang Mueller: then do, as your user: ssh user@remote_host Replace user with your username, remote_host by the remote IP or domain name. That should get you in without a password. If it doesn't work, check the ssh configuration on the remote. And do yourself a favour: disable root login over ssh ..... -- Gertjan Lettink a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 27 november 2019 19:40:10 CET schreef Knurpht-openSUSE:
Op woensdag 27 november 2019 19:21:27 CET schreef Wolfgang Mueller:
In "man ssh" I read: The user creates his/her key pair by running ssh-keygen(1). This stores the private key in [...] ~/.ssh/id_rsa (RSA) and stores the public key in [...] ~/.ssh/id_rsa.pub (RSA) in the user's home directory. The user should then copy the public key to ~/.ssh/authorized_keys in his/her home directory on the remote machine. The authorized_keys file corresponds to the conventional ~/.rhosts file, and has one key per line, though the lines can be very long. After this, the user can log in without giving the password.
I followed these instructions. But the remote system still continues asking for a password. Only root can login without specifying a password.
Thank you in advance for your help, Wolfgang
Do this, as your user: ssh-copy-id user@remote_host Replace user with your username, remote_host by the remote IP or domain name. then do, as your user: ssh user@remote_host Replace user with your username, remote_host by the remote IP or domain name.
That should get you in without a password. If it doesn't work, check the ssh configuration on the remote. And do yourself a favour: disable root login over ssh ..... O, since it works for root, you most likely invoked the commands as root, where you should have invoked them as your user.
-- Gertjan Lettink a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Knurpht-openSUSE
-
Wolfgang Mueller