Monday, May 13, 2013
linux: ssh without password prompt
from source computer:
go to your user (su -l username to load login vars)
ssh-keygen -t rsa
ls ~/.ssh/
from destination computer:
go to your user (su -l username to load login vars)
ssh to source computer to create .ssh directory
from source computer:
scp ~/.ssh/id_rsa.pub linus@x.x.x.x:/home/linus/.ssh/authorized_keys2
then try
ssh to destination computer
password prompt should not appear
:)
Subscribe to:
Post Comments (Atom)
SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss
Got this while connecting to my mikrotik router via ssh Unable to negotiate with <ip address> port <ssh port>: no matching hos...
-
got: Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_mapscript...
-
got 554 5.7.1 ACL dns_rbl; Client host [121.58.237.210] blocked using > sa-ip4tset.blagr.emailsrvr.com=127.26.0.2 http://blaggregat...
-
getting NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 554 5.7.1 : Relay access denied ? in your zimbra admin go to: server > mta >...
No comments:
Post a Comment