Re: questions on ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 16 May 2005 10:36:28 +0530
Ankush Grover <ankush174@xxxxxxxxx> 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@xxxxxxxxxxxx
  $ scp .ssh/id_rsa.pub example.com:~/
  me@xxxxxxxxxxx's password: <password>
  id_rsa.pub                          100%  231     0.2KB/s   00:00    
  $ ssh example.com
  me@xxxxxxxxxxx'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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux