Send key pairing to remote computer
Code :
[msmunir@msmunir1 ~]$ cd .ssh
[msmunir@msmunir1 .ssh]$ scp id_rsa.pub
msmunir@202.46.3.66:/home/msmunir/.ssh/id_rsa.pub.lenovo
msmunir@202.46.3.66's password:
id_rsa.pub 100% 410 0.4KB/s 00:00
[msmunir@msmunir1 .ssh]$
Edit "authorized_keys" file on remote computer
Code :
[msmunir@msmunir1 .ssh]$ ssh msmunir@202.46.3.66
msmunir@202.46.3.66's password:
Last login: Sun Jan 25 22:33:30 2009 from 125.160.107.126
msmunir@serpong5:~ # cd .ssh
msmunir@serpong5:~/.ssh # more id_rsa.pub.lenovo
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEA1nqwTFg3IoUoUdyAQ65R+26ipEX42L7C3NcBcYEEtY78
lT/qeSaPIPGyfiMXCOeGtghQ12Msrflott+AblAxizERwvNPjeI0DcxSXTbE15R7M5SjOSSKz1wCIyBi
IK5Bi5iIY36K3wqoGSfkekcbtGQKbf+vftwtlsTdrXVO0WMPxoTwJBNGxgljT45JaGyM7KiZpWMFTPBo
jGOiMJY6xV416ZnFlxpKUIMyoKvlysefxI3bw2LnbcDswadpYJInGfqp9pywaMPoA976C43dkmimTLfs
juTFHWSlv8AS4QWuMFev72y9vGVoZ21Fc0dSE3WJ7ovT7d14G6Tf75tBrw==
msmunir@msmunir1.ba
tan.go.id
msmunir@serpong5:~/.ssh #
Block this content of "id_rsa.pub.lenovo" file, then Copy and paste to "authorized_keys" file.
Code :
msmunir@serpong5:~/.ssh # mcedit authorized_keys
Paste with "Ctr-Sht-V" button, edit to make 6 lines become 1 line. Save with F2 and Quit with F10.
Now, you can SSH without password.
By. Muh. Sirojul Munir (msmunir@batan.go.id)
Tuesday, February 3, 2009
SSH without Password, a Simple Way
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment