LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2007, 12:01 PM   #1
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Rep: Reputation: 33
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.
 
Old 12-04-2007, 12:16 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
http://www.linuxquestions.org/linux/...ation_with_ssh
 
Old 12-04-2007, 01:08 PM   #3
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Original Poster
Rep: Reputation: 33
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.
 
Old 12-04-2007, 01:13 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i don't follow what you mean by letting the shell use it..? how else are you using ssh if not a shell?
 
Old 12-04-2007, 01:25 PM   #5
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Original Poster
Rep: Reputation: 33
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.
 
Old 12-04-2007, 01:48 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
do you just want to know how to use a key witin putty then? http://www.howtoforge.com/ssh_key_based_logins_putty
 
Old 12-04-2007, 05:13 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 11:15 AM
SSH key pairing lmcilwain Linux - Security 2 12-15-2006 03:32 AM
SSH rsa key PB0711 Linux - Security 3 09-10-2006 03:57 PM
ssh Host Key ziox Linux - Networking 6 02-07-2005 02:57 PM
ssh / ssh-key -- its always asking for passphrase BaerRS Linux - General 1 01-07-2003 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration