Dear list! Sorry for off-topic. I know you're cool guys and will help me :) Is there way to use two different keys for ssh authentication on one machine for the same user to login the same server? I need one key for svn+ssh to run command on remote server and the other key to login and work from shell on that same server. TIA
On 07/28/2014 09:49 AM, Hiisi issued this missive:
Dear list! Sorry for off-topic. I know you're cool guys and will help me :) Is there way to use two different keys for ssh authentication on one machine for the same user to login the same server? I need one key for svn+ssh to run command on remote server and the other key to login and work from shell on that same server.
"ssh -i <identity file name>" allows you to use a different identity than the default ~/.ssh/id_[d|r]sa" file. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - If this is the first day of the rest of my life... - - I'm in BIG trouble! - ----------------------------------------------------------------------
On 28 July 2014 20:54, Rick Stevens ricks@alldigital.com wrote:
"ssh -i <identity file name>" allows you to use a different identity than the default ~/.ssh/id_[d|r]sa" file.
Doesn't work! On server side in .ssh/authorized_keys I have: command="/path/to/svnserve -t" ssh-rsa AAA.... hiisi@my_laptop I've generated another key, copied it to server side using ssh-copy-id and using abovementioned command still seeing svnserve daemon on my screen.
On 28 July 2014 20:54, Rick Stevens ricks@alldigital.com wrote:
"ssh -i <identity file name>" allows you to use a different identity than the default ~/.ssh/id_[d|r]sa" file.
Solved. The problem was that ssh-copy-id didn't copied rsa.pub. Pasted it manually to .ssh/authorized_keys on server side. Now everything works like a charm. Thanks for attention!