Unix administration - how do I log in with password with ssh

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > November 2007 > how do I log in with password with ssh





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how do I log in with password with ssh
nobody

2007-11-10, 7:23 pm

I have a machine that I am a regular user call it john

I want to log in to a remote machine by the user name jane

how do I log in via ssh with no password on the remote machine with ssh by
using the public key ssh?


Thorbjoern Ravn Andersen

2007-11-10, 7:23 pm

"nobody" <nobody@nobody.com> writes:

> how do I log in via ssh with no password on the remote machine with ssh by
> using the public key ssh?


Try searching for "ssh without password tutorial" on Google.
--
Thorbjørn Ravn Andersen
Lion-O

2007-11-10, 7:23 pm

> how do I log in via ssh with no password on the remote machine with ssh by
> using the public key ssh?


Using key-based authentication. In short you simply grab your public key from
~/.ssh and place it into the "~/.ssh/authorized_keys" file on the other server.
Do make sure that the server itself allows for keybased authentication (this
can be checked using the main config file).


--
..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc

nobody

2007-11-10, 7:23 pm

I tried that,

on the machine I am on, i generated key with

ssh-keygen -t rsa

copied the id_pub.rsa key to the remote machine in /home/jane/.ssh

then created authorized_keys file from the id_pub.rsa in /home/jane/.ssh


from my own machine I do ssh -l jane remotemachine

still prompts for janes password



"Lion-O" <nosp@m.catslair.org> wrote in message
news:slrnfjc8ql.7kc.nosp@ubuntu.intranet.lan...
>
> Using key-based authentication. In short you simply grab your public key
> from
> ~/.ssh and place it into the "~/.ssh/authorized_keys" file on the other
> server.
> Do make sure that the server itself allows for keybased authentication
> (this
> can be checked using the main config file).
>
>
> --
> .\\ PGP/GPG key: http://www.catslair.org/pubkey.asc
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com