Re: generating a ssh key without ssh-keygen

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 01/12/04


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.


Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)

Quantcast