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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2007, 12:01 PM
|
#1
|
Member
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324
Rep:
|
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.
|
|
|
12-04-2007, 12:16 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
|
|
|
12-04-2007, 01:08 PM
|
#3
|
Member
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324
Original Poster
Rep:
|
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.
|
|
|
12-04-2007, 01:13 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
i don't follow what you mean by letting the shell use it..? how else are you using ssh if not a shell?
|
|
|
12-04-2007, 01:25 PM
|
#5
|
Member
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324
Original Poster
Rep:
|
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.
|
|
|
12-04-2007, 05:13 PM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,440
|
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 02:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|