LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to use ssh key (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-ssh-key-604455/)

knockout_artist 12-04-2007 12:01 PM

how to use ssh key
 
Good Day,

I have ssh key which I use with putty. I need to use it with plain old shell.

How do I do that?
Do we add key name/location in ssh command? like #ssh me@192.168.22.22 mykey
or some thing?

Thanks.

acid_kewpie 12-04-2007 12:16 PM

http://www.linuxquestions.org/linux/...ation_with_ssh

knockout_artist 12-04-2007 01:08 PM

Thank you chris,
I read the instructions. My situation is that server already has pub key. I log into server using putty.
Now I need to use shell/terminal. Where do I put my private key so shell/terminal could use it while accessing servers.

Thanks.

acid_kewpie 12-04-2007 01:13 PM

i don't follow what you mean by letting the shell use it..? how else are you using ssh if not a shell?

knockout_artist 12-04-2007 01:25 PM

I am using putty. Its a window like thing. It has browse function for private key. you could save it and its used upon access to servers.

Now I need terminal to get access to servers. My pub key wasn't created on my local machine so I can't use

#ssh-keygen -t dsa
or
#cat ~/.ssh/id_dsa.pub | ssh user@server "cat - >> ~/.ssh/authorized_keys"

Am I making any sense?

I have the private key send to me via e mail. As I said I have used it in putty. Now I need to use via plain/old linux terminal/shell.

Thanks.

acid_kewpie 12-04-2007 01:48 PM

do you just want to know how to use a key witin putty then? http://www.howtoforge.com/ssh_key_based_logins_putty

chrism01 12-04-2007 05:13 PM

I think he's saying he used to have an MS box, using putty+ssh key to login to server.
Now he wants to use the same key to login to same server, but from a different Linux client box. (See email comment)


All times are GMT -5. The time now is 11:48 AM.