Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to use pub keys (not ssh password) in ssh command?

Reply
Thread Tools Display Modes

How to use pub keys (not ssh password) in ssh command?

 
 
Peter Hanke
Guest
Posts: n/a

 
      10-22-2009, 09:52 AM
Assume I want to open an SSH connection from Linux to a remote computer.

How can I use local pub/priv key files as parameters for authentication in this command?
Remote computer supports ssh key files.

Again: I do not want to use user/password for this but generated key files.

Peter

 
Reply With Quote
 
 
 
 
Fabian Schuh
Guest
Posts: n/a

 
      10-22-2009, 10:08 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Hanke <(E-Mail Removed)> schrieb:
> Again: I do not want to use user/password for this but generated key files.

Google?
http://rcsg-gsir.imsb-dsgi.nrc-cnrc....et/node31.html

- --
(`/\
`=\/\
`=\/\
`=\/
_\___ best regards
) ( -- Fabian Schuh
( INK )
\___/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrgLy4ACgkQ8lOKSygtYjgSvwCgxnvQUtC54U LiWmXW5/V5pVQ2
xdMAn2/ujVCV+QMnqN2e8iGyuvI+OVug
=4u1G
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Grant
Guest
Posts: n/a

 
      10-22-2009, 10:40 AM
On 22 Oct 2009 09:52:02 GMT, (E-Mail Removed) (Peter Hanke) wrote:

>Assume I want to open an SSH connection from Linux to a remote computer.
>
>How can I use local pub/priv key files as parameters for authentication in this command?
>Remote computer supports ssh key files.
>
>Again: I do not want to use user/password for this but generated key files.


You need to transfer the public key to the remote computer, either
via a 'normal' user/password login or some other transfer method.

See: 'man ssh-copy-id'

Grant.
--
http://bugsplatter.id.au
 
Reply With Quote
 
Alexander Gran
Guest
Posts: n/a

 
      10-22-2009, 11:06 AM
Peter Hanke wrote:

> How can I use local pub/priv key files as parameters for authentication in
> this command? Remote computer supports ssh key files.


man ssh:
-i identity_file
Selects a file from which the identity (private key) for RSA or DSA
authentication is read. The default is ~/.ssh/identity for protocol
version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for protocol version 2.
Identity files may also be specified on a per-host basis in the
configuration file. It is possible to have multiple -i options (and
multiple identities specified in configuration files).

i.e. ssh -i /home/joe/private_foo/ssh_id_special (E-Mail Removed)

regards
Alex
 
Reply With Quote
 
Chris F.A. Johnson
Guest
Posts: n/a

 
      10-22-2009, 02:29 PM
On 2009-10-22, Peter Hanke wrote:
> Assume I want to open an SSH connection from Linux to a remote computer.
>
> How can I use local pub/priv key files as parameters for authentication in this command?
> Remote computer supports ssh key files.
>
> Again: I do not want to use user/password for this but generated key files.


man ssh-keygen


--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
 
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
SP3 Netsh command does not include wlan command. Stephen Liffen Wireless Networks 4 09-15-2008 02:42 PM
WEP Keys Geoff Lane Home Networking 2 01-03-2006 05:43 PM
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



1 2 3 4 5 6 7 8 9 10 11