|
Title: HowTo: Public Key Authentication Description: Setting up a public key (non-password) login using ssh. First, before starting, the following assumptions are made:
Preparing the client
1. If it does not exist, create the ~/.ssh directory for your user. 2. Generate the public / private key pair with the command ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa
3. As root, edit the /etc/ssh/ssh_config file in the following ways:
Preparing the server
1. Log in to the remote server using the normal ssh password authentication. 2. Make sure the ~/.ssh directory exists. 3. Make sure permissions on the ~/.ssh directory are 700. 4. Now from the client machine copy the .pub key you generated to ~/.ssh on the server. You can do this with something like (from the client machine): scp ~/.ssh/id_rsa.pub user_name_here@server_here:~/.ssh That will prompt you for a password to complete. 5. Now ssh to the server again, and run the following command: cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 6. Next, as root, edit the /etc/ssh/sshd_config file in the following ways:
7. As root, restart sshd: rcsshd restart That's it. Now try logging in from your client machine - you should be logged in automatically without being prompted for a password. Comments and Suggestions: http://forums.suselinuxsupport.de/index.php?showtopic=18094∞ To add your own howto: http://forums.suselinuxsupport.de/index.php?showforum=50∞ |
Warning: include(http://forums.suselinuxsupport.de/ssi.php?a=active) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/customers/webs/slwiki/actions/footer.php on line 51
Warning: include() [function.include]: Failed opening 'http://forums.suselinuxsupport.de/ssi.php?a=active' for inclusion (include_path='.:/home/customers/webs') in /home/customers/webs/slwiki/actions/footer.php on line 51
There are no comments on this page. [Add comment]