Content added Content deleted
imported>Hundfred No edit summary |
imported>Hundfred No edit summary |
||
Line 1: | Line 1: | ||
just ''kwick n dirty'': |
just ''kwick n dirty'': |
||
if you want to get rid of that ''bothering passphrase'' while connecting via ssh to host, |
if you want to get rid of that ''bothering passphrase'' while connecting via ssh to a host, |
||
just append your '''~/.ssh/id_rsa.pub''' on your local machine at the file '''~/.ssh/authorized_keys''' at the target host. |
just append your '''~/.ssh/id_rsa.pub''' on your local machine at the file '''~/.ssh/authorized_keys''' at the target host. |
||
<pre> |
<pre> |
||
scp ~/.ssh/id_rsa.pub <user>@<host>:/<home>/<user>/.ssh |
scp ~/.ssh/id_rsa.pub <user>@<host>:/<home>/<user>/.ssh |
||
</pre> |
|||
then log into the target machine, and enter |
then log into the target machine, and enter |
||
<pre> |
|||
cat ~/.ssh/id_rsa.pub >> ~/ssh/authorized_keys''' |
cat ~/.ssh/id_rsa.pub >> ~/ssh/authorized_keys''' |
||
</pre> |
</pre> |
||
Line 17: | Line 18: | ||
ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<host> |
ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<host> |
||
</pre> |
</pre> |
||
findet man unter ~/.ssh/ keinen key, so kann man einen |
|||
[[ssh-dsa-key_erzeugen]] |
Revision as of 13:44, 12 April 2005
just kwick n dirty:
if you want to get rid of that bothering passphrase while connecting via ssh to a host, just append your ~/.ssh/id_rsa.pub on your local machine at the file ~/.ssh/authorized_keys at the target host.
scp ~/.ssh/id_rsa.pub <user>@<host>:/<home>/<user>/.ssh
then log into the target machine, and enter
cat ~/.ssh/id_rsa.pub >> ~/ssh/authorized_keys'''
even faster: there if you start the program ssh-agent it will provide some scripts that do things like this for you:
ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<host>
findet man unter ~/.ssh/ keinen key, so kann man einen ssh-dsa-key_erzeugen