Client: WinXP using Secure Shell ssh client.
Server: Solaris 10 running Openssh protocol 2.
This is for myself so that i remember how to do it next time..
1. my laptop has got secure shell ssh client installed.
2. On my solaris 10.
root@pw450 # pgrep -lf ssh
18746 /usr/lib/ssh/sshd
632 /usr/lib/ssh/sshd
18749 /usr/lib/ssh/sshd
root@pw450 # svcs ssh
STATE STIME FMRI
online 10:33:00 svc:/network/ssh:default
3. Generate a private key on my ssh client and uploaded to server pw450.
4. Check on Solaris server pw450. The public key has been uploaded to /.ssh2.
root@pw450 # cd /.ssh2
root@pw450 # pwd
/.ssh2
root@pw450 # ls
authorization wh7889.pub
root@pw450 #
#ssh-keygen -i -f /.ssh2/wh7889.pub > /.ssh/wh7889ossh.pub
6.
root@pw450 # pwd
/.ssh
root@pw450 # ls
authorized_keys known_hosts wh7889ossh.pub
root@pw450 # ls -l wh7889ossh.pub
-rw-r--r-- 1 root root 1613 Jun 16 12:06 wh7889ossh.pub
root@pw450 #
root@pw450 # cat wh7889ossh.pub > authorized_keys
root@pw450 # more authorized_keys
ssh-dss AAAAB3NzaC1kc3MAAAGBAJ5uyGdcXoAaHKZBhOYCt8GlHyV9Q8bvH2wWQ+/Anh87CtiRVTHk
S8XkHHyX5W07dDQjYUe9eGNFkCeKLvliFnsKnyTienLGoKt/9Dm1KruQU4IVrsUiAzMVnI2qCvO0kAIH
DJe0f2dlOuOU0xhc+OCxhAL6vrnKNeAeHZe9sKx1hjTIhMrANO0NJFapy+575T+veFERp5r3WFCPNIqU
CxXNjLSMP6qaOw0IXSMqnUNaWp/eiYzRRVwpjPovJMTyDBq5PXdmYYr3m0u2U6hQqs/Bq5BPSgW/swiD
n+8zvyTuQ1I+1WsYdjXjkT6dHt8T31x6FUf37kTt52Hded0dHGOr0C7+IDOCQuxpBXoyzugi9GNBeKBR
R7fkO5QSt3aHt7kB/J/cv2dQUeewiSATI+7rH4G2j0OEjezPKmi5dbBZYEz4bScgwidflkvKEQaXmjoj
1ihT4L8POEN/1i/jeGPEIafAo3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LlMl+Qe/DgMF
8. Login using public key and u will be prompted to enter passphrase. Yes!!
No comments:
Post a Comment