Re: generating a ssh key without ssh-keygen
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 01/12/04
- Next message: Bill Unruh: "Re: PermitRootLogin without-password"
- Previous message: all mail refused: "Re: generating a ssh key without ssh-keygen"
- In reply to: all mail refused: "Re: generating a ssh key without ssh-keygen"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 12 Jan 2004 22:39:51 +0000 (UTC)
In article <slrnc067ck.f5o.elvis@notatla.org.uk>,
all mail refused <elvis@notatla.org.uk> wrote:
>In article <ukoznctm5ew.fsf@login.ee.iitm.ernet.in>, Abi wrote:
>
>>I have a server that runs linux (REDHAT) and a client running Solaris.
>>I'd like to connect to the server sshd using a ssh client but the I
>>don't have ssh-keygen in the client.
>>Is there a way in which I can generate the required public and private
>>keys on my server and then put it on my client?
>
>I could send you one. What are the username and IP address where you
>intend to install it ?
Hopefully that's a joke. In case it's not obvious, doing this would
be the equivalent of giving out the password to the account in question.
>Or you could generate them on the server and save them to filenames not
>already in use.
There's a good chance ssh-keygen really is on the client (it's required
to generate the host keys if sshd is installed) but you can generate
keys on the server and copy them:
[Server]
$ ssh-keygen -t rsa -f $HOME/.ssh/tmp_rsa
(Enter pass phrase)
$ cat $HOME/.ssh/tmp_rsa.pub >>$HOME/.ssh/authorized_keys
(if you want to allow the new key to access the server)
[Client]
$ scp server:.ssh/tmp_rsa $HOME/.ssh/id_rsa
$ scp server:.ssh/tmp_rsa.pub $HOME/.ssh/id_rsa.pub
Once you've tested it, delete the tmp files from the server.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Next message: Bill Unruh: "Re: PermitRootLogin without-password"
- Previous message: all mail refused: "Re: generating a ssh key without ssh-keygen"
- In reply to: all mail refused: "Re: generating a ssh key without ssh-keygen"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|