Networking Forums

Networking Forums > Computer Networking > Linux Networking > generating a ssh key without ssh-keygen

Reply
Thread Tools Display Modes

generating a ssh key without ssh-keygen

 
 
Abi
Guest
Posts: n/a

 
      01-12-2004, 04:40 PM

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?

abi

 
Reply With Quote
 
 
 
 
Carl
Guest
Posts: n/a

 
      01-12-2004, 06:36 PM


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?
>
> abi
>


? I don't quite follow. You know how to use ssh-keygen, and if you have
said program on your server you can use it to create a key-pair. Use a
floppy and take it to your client. Are you asking how to do this whole
process? are you asking how to initiate a ssh connection using a key?

clg

 
Reply With Quote
 
all mail refused
Guest
Posts: n/a

 
      01-12-2004, 09:19 PM
In article <(E-Mail Removed)>, 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 ?

Or you could generate them on the server and save them to filenames not
already in use.

--
Elvis Notargiacomo http://www.sendacow.org.uk/homepage.html
 
Reply With Quote
 
Darren Tucker
Guest
Posts: n/a

 
      01-12-2004, 09:39 PM
In article <(E-Mail Removed)>,
all mail refused <(E-Mail Removed)> wrote:
>In article <(E-Mail Removed)>, 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.
 
Reply With Quote
 
Peteris Krumins
Guest
Posts: n/a

 
      01-12-2004, 09:46 PM
Abi <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

>
> 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?
>


OpenSSH works well on Solaris as well. Why dont you upgrade the solaris
box?


P.Krumins
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      01-13-2004, 01:38 AM
On Mon, 12 Jan 2004 23:10:39 +0530, Abi <(E-Mail Removed)> 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 don't think it matters what Unix like system you generate ssh keys on,
any more than it matters (it doesn't) which systems you use your public
key (authorized_keys) on. I use the same authorized keys generated in
Linux for Linux, Solaris, FreeBSD and NetBSD servers.

However, if you generate private keys on a server, you probably want to
remove them promptly for safe keeping, especially if you use any without a
strong passphrase.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
Abi
Guest
Posts: n/a

 
      01-13-2004, 06:27 AM
Carl <moc.erawtfosdigir@treblig_tnomal> writes:

> ? I don't quite follow. You know how to use ssh-keygen, and if you
> have said program on your server you can use it to create a key-pair.


Thanks for all your replies.
the problem was that when I generate a private and public key pair on
the server, I get the server name added to the private key. So, when
I copied that file on to the client and ran

$ ssh server -l username

it still asked me for a password. this is what I ran on the server

$ ssh-keygen -t dsa -f ./private
$ cat ./private.pub >> ./ssh/authorized_keys
$ ftp client
mput ./private

and in the client

$ mv ./private .ssh/id_dsa

is there something wrong in what I do.
Hope I am clear

abi
 
Reply With Quote
 
Carl
Guest
Posts: n/a

 
      01-13-2004, 03:54 PM


Abi wrote:
> Carl <moc.erawtfosdigir@treblig_tnomal> writes:
>
>
>>? I don't quite follow. You know how to use ssh-keygen, and if you
>>have said program on your server you can use it to create a key-pair.

>
>
> Thanks for all your replies.
> the problem was that when I generate a private and public key pair on
> the server, I get the server name added to the private key. So, when
> I copied that file on to the client and ran
>


they name of the key is irrelevant. You can rename it at your leisure.


> $ ssh server -l username
>
> it still asked me for a password. this is what I ran on the server
>


did you enter an empty passphrase for your key you generated?

> $ ssh-keygen -t dsa -f ./private
> $ cat ./private.pub >> ./ssh/authorized_keys
> $ ftp client
> mput ./private
>
> and in the client
>
> $ mv ./private .ssh/id_dsa
>
> is there something wrong in what I do.
> Hope I am clear
>
> abi


try this

ssh -2v server -l username

that should force protocol 2 and give more detail about the failure.

oh and be sure to check the permissions on your key files on both the
server and the client.

my authorized_keys file is 700

I tested exactly what you did, sans the file transfers and it works
fine, with the -2.

Also note that dsa has issues and perhaps the server admin disabled dsa
keys, try it with rsa.


cl



im using a windows client so I cant help there...


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating traffic at a specified bitrate Spoon Linux Networking 1 08-30-2007 05:02 PM
Generating jumbo frames ksriram29@gmail.com Linux Networking 0 02-10-2007 10:59 AM
Not generating IP address GreatEastern Wireless Networks 0 02-15-2006 10:29 AM
What do u think about this random key generating website? Go Tyler Wireless Internet 1 12-18-2005 03:58 PM
Generating a key for WPA-PSK Peter Crosland Broadband 8 03-06-2004 11:03 AM



1 2 3 4 5 6 7 8 9 10 11