Re: passpharse configuration
- From: Martin Gagnon <martin@xxxxxxxxxxxxxxxx>
- Date: Fri, 20 Jul 2007 15:22:30 GMT
kamZ <kamesh.84@xxxxxxxxx> wrote:
Hi all,
First I generated a key using ssh-keygen -rsa
I'm assuming that you use an OpenSSH *client* on a unix-like system.
That's right ? The ssh-keygen *must* be done on the client side..
It asked for passpharse and file location
The command created two files
1. Id_rsa
2. Id_rsa.pub
I copy the id_rsa.pub in my local machine(Windows) in the file
authorized_keys
What do yo mean by "local machine" ? The id_rsa.pub file must go in the
authorized_keys key on the *Server* side.
But it is asking my original password to login.
It is not asking my passpharse.
What should I need to do next?
You need to provide more information about your setup.. What's the
server, what's the client. They run with OS, What SSH client/server
etc...
If you use a Unix-like client with OpenSSH:
-------------------------------------------
You need to use use ssh-agent and ssh-add to load the key ... There's
many way to do it... ssh-agent should run and have the right
environnement variables set to begin with. After you can use ssh-add to
add the key to the agent, it will ask you for the paraphrase at this
time. But if you want to start ssh-agent properly automatically on
startup, it's depend on your setup. On some OS, ssh-agent start by
default with Xwindows whensome "id_rsa" or "id_dsa" are present in your
~/.ssh directory. if it's the case.. you only have to call "ssh-add"
once that that's it.
Look at the "ssh-agent" and "ssh-add" manpage for more details.
If you use Windows as a client using PuTTY:
------------------------------------------
In that case.. you have to generate the key with "PuTTYgen" and copy the
public key to the authorized_keys file on the server side. Use Pageant
to load your private key (equivalent of the ssh-agent/ssh-add with
OpenSSH). And your puTTY is ready to connect to your server using your
key.
[snip]
--
Martin
.
- References:
- passpharse configuration
- From: kamZ
- passpharse configuration
- Prev by Date: Prevent or at least detect empty passphrases (NFS homes)
- Next by Date: Re: ssh session hangs after authentication
- Previous by thread: passpharse configuration
- Next by thread: Putty problem with characters
- Index(es):
Relevant Pages
|
|