password-less_ssh_between_linux_machines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
password-less_ssh_between_linux_machines [04.12.2017 16:49] Pascal Suterpassword-less_ssh_between_linux_machines [25.10.2023 11:11] (current) – [ssh auto login under Linux] Pascal Suter
Line 23: Line 23:
   scp .ssh/id_rsa.pub username@server:~/   scp .ssh/id_rsa.pub username@server:~/
  
-now connect to the server through ssh and add the contents of the copied file to your ''~/.ssh/authorized_keys2''+now connect to the server through ssh and add the contents of the copied file to your ''~/.ssh/authorized_keys''
 if this is the first time you do that, then you have to create both, the directory and the file. if this is the first time you do that, then you have to create both, the directory and the file.
  
Line 34: Line 34:
   ssh username@server    ssh username@server 
  
-without a password prompt. if it does not work i occasionally had to use the filename ''authorized_keys2'' instead of the one above, so maybe try adding that number on the end of the file name. other than that it should work like that. don it on many different distributions for quite some time now and it always worked this way. +without a password prompt. if it does not work i occasionally had to use the filename ''authorized_keys2'' instead of the one above, so maybe try adding that number on the end of the file name. other than that it should work like that. I've done it on many different distributions for quite some time now and it always worked this way. 
  
 more detailed infos in german can be found here: more detailed infos in german can be found here:
 http://www.kriegisch.at/~adi/docs/unix/ssh_autologin.html http://www.kriegisch.at/~adi/docs/unix/ssh_autologin.html
  • password-less_ssh_between_linux_machines.1512402573.txt.gz
  • Last modified: 04.12.2017 16:49
  • by Pascal Suter