questions on ssh
Michael B Allen
mba2000 at ioplex.com
Mon May 16 06:35:41 UTC 2005
On Mon, 16 May 2005 10:36:28 +0530
Ankush Grover <ankush174 at gmail.com> wrote:
> b) I am using putty on windows for the first time when I connect the
> putty to the Linux Server it asks for acceptance of the key.I know
> this key is common and dummy as this key is with every fedora core 3
> cd.How can I generate my own key so that I know that I am connecting
> to the correct server.\
Just type 'yes' and it will not ask you again.
> c) How to do X11 forwarding in putty( on windows) to my remote Linux servers.
I don't understand this. Do you mean you want to run X apps on your
Windows machine? If so, you need an X server like Exceed.
> d) I want to put the public keys of users generated on the Linux
> clients on the servers so that the users don't have to use the
> passwords for authencation with the servers.
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/me/.ssh/id_rsa): <enter>
Enter passphrase (empty for no passphrase): <enter>
Enter same passphrase again: <enter>
Your identification has been saved in /home/me/.ssh/id_rsa.
Your public key has been saved in /home/me/.ssh/id_rsa.pub.
The key fingerprint is:
cd:b0:08:2f:82:75:f4:da:26:a6:db:03:41:fc:0b:04 me at my.local.net
$ scp .ssh/id_rsa.pub example.com:~/
me at example.com's password: <password>
id_rsa.pub 100% 231 0.2KB/s 00:00
$ ssh example.com
me at example.com's password:
Last login: Mon May 16 02:27:09 2005 from my.local.net
example.com$ cat id_rsa.pub >> .ssh/authorized_keys
example.com$ exit
logout
Connection to example.com closed.
Now we should no longer be asked for a password ...
$ ssh example.com
Last login: Mon May 16 02:28:19 2005 from my.local.net
example.com$
Look ma, no hands!
Now, normally users should enter a passphrase for their keystore. But
then you need ssh-agent but that's a different story (which incedentally
I haven't been able to get working on FC3).
Mike
More information about the fedora-list
mailing list