Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh and private keys

Reply
Thread Tools Display Modes

ssh and private keys

 
 
marti
Guest
Posts: n/a

 
      12-06-2003, 01:13 AM
Hi!

I have a simple question.
How do I use private keys for connecting to my shell account in "ssh"
command?
I have a private key generated by Putty on Windows and I have to put
it in Connection/SSH/Auth/Private Key File for Authentication in order
to be able to connect to my server.
How do I achieve the same in Linux?
Should I use some other software than "ssh"?

Thx,
mat
 
Reply With Quote
 
 
 
 
Basil Heathenston
Guest
Posts: n/a

 
      12-06-2003, 02:05 AM

"marti" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi!
>
> I have a simple question.
> How do I use private keys for connecting to my shell account in "ssh"
> command?
> I have a private key generated by Putty on Windows and I have to put
> it in Connection/SSH/Auth/Private Key File for Authentication in order
> to be able to connect to my server.
> How do I achieve the same in Linux?
> Should I use some other software than "ssh"?

You need to sftp (using name/passwd one time) to upload your PUBLIC key into
the server's .ssh (if it's Linux, it's ~/.ssh) directory.
>
> Thx,
> mat



 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      12-06-2003, 02:30 AM
On 5 Dec 2003 18:13:05 -0800, marti <(E-Mail Removed)> wrote:
> Hi!
>
> I have a simple question.
> How do I use private keys for connecting to my shell account in "ssh"
> command?
> I have a private key generated by Putty on Windows and I have to put
> it in Connection/SSH/Auth/Private Key File for Authentication in order
> to be able to connect to my server.
> How do I achieve the same in Linux?
> Should I use some other software than "ssh"?


Upload your puttygen generated authorized_keys.txt file to Linux and
append it to your authorized_keys file there:

cat authorized_keys.txt >> ~/.ssh/authorized_keys

That works for me to connect Putty with my passphrase to Solaris, NetBSD
and multiple Linux versions.

But to connect Linux ssh to a Unix/Linux box you would have to generate a
key in Linux (which can use the same passphrase) and append its public key
(that filename may vary depending upon type of key) to authorized_keys
file at destination.

I do not know if a Putty generated identity.txt would work for ssh
identity file (never tried it).

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      12-06-2003, 02:41 AM
In article <(E-Mail Removed) >,
marti wrote:
> How do I achieve the same in Linux?


See the man pages for ssh-keygen(1), ssh-copy-id(1), and optionally
ssh-agent(1) and ssh-add(1). It's possible to use your putty secret key,
too; I think ssh-keygen will convert from that format.

> Should I use some other software than "ssh"?


No.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to identify ephemeral port range of Windows server2008 using registry keys? What are the new Registry keys? jhon Fernando Windows Networking 0 09-18-2008 12:28 AM
Masquerading private LAN to private ip entpneur@gmail.com Linux Networking 1 12-31-2007 02:39 AM
WEP Keys Simon Hughes Wireless Internet 9 08-22-2004 04:05 AM
WEP Keys - Need Some Help Dick Wireless Internet 8 06-21-2004 05:10 PM
WEP Keys yirm Wireless Internet 3 09-09-2003 08:53 PM



1 2 3 4 5 6 7 8 9 10 11