Re: Public key authentication between open-ssh and ssh2
From: Bill Unruh (unruh@string.physics.ubc.ca)
Date: 04/24/03
- Next message: Alex: "Re: Non-interactive SSH Login."
- Previous message: Gregory: "The authenticity of host 'intranet (x.x.x.x)' can't be established.""
- In reply to: Sumit Malhotra: "Public key authentication between open-ssh and ssh2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: unruh@string.physics.ubc.ca (Bill Unruh) Date: 24 Apr 2003 15:41:10 GMT
smalhotra@burgundyinfotech.com (Sumit Malhotra) writes:
]Hi
]i need to ssh via public key authentication from openssh to ssh2. i
]have tried the following way but it din't work please help me finding
]teh mistake i am repeating :
]1. OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f (Red hat
]8.0)
]2. SSH version 2.0.13(Red hat 6.2)
]redhat 6.2+ssh2>ssh-keygen -t dsa -b 1024 /root/.ssh2/mykey
]redhat 6.2+ssh2>echo "key mykey.pub" >>/root/.ssh2/authorization
]redhat 6.2+ssh2>scp /root/.ssh2/mykey
]<redhat8.0+openssh>:/root/.ssh/id_dsa
Not sure what you are doing here. On 6.2 you have a mykey and a
mykey.pub. If you want to connect from the 6.2 to the 8.0 you need to
put the contents of mykey.pub into the authorized_keys file on 8.0
The 6.2 machine will encrypt something with its mykey, and the 8.0 will
decrypt with the public key from authorized_keys, and if it decrypts
properly , the 8.0 will know that the request came from the 6.2 user.
You do NOT move the private key ever. It should always stay on the
machine on which it was generated.
]but the authentocation didn't work i get the following out put while
]connecting to the host via ssh at <redhat8.0+openssh>
- Next message: Alex: "Re: Non-interactive SSH Login."
- Previous message: Gregory: "The authenticity of host 'intranet (x.x.x.x)' can't be established.""
- In reply to: Sumit Malhotra: "Public key authentication between open-ssh and ssh2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|