On Monday 08 September 2003 01:46 pm, Matthias F. Brandstetter wrote:
> Hi all,
>
> I followed three different "howtos" found on google, all saying the
> same, followed them step by step but still no luck :(
>
> I want to login from machine "local" to machine "remote" w/o giving
> a pwd. So I did a
>
> $ ssh-keygen -t rsa
>
> on "local" and copied /root/.ssh/id_rsa.pub -->
> remote:/root/.ssh/authorized_keys
>
> But that did not the trick! So I tried it with authorized_keys2 --
> still nothing. So I tried it with .ssh2 as dir -- still no luck :(
>
> Has anybody another idea? Do I miss something?
> Greets, Matthias

Matthias,
You have to do this as the user you will be connecting as. If your ssh 
session will be run from user on local to root on remote, generate 
the key as user and copy it to root @ remote
the below was written for a windows box running cygwin, but it worked 
for me

ssh-keygen -t  rsa
Enter file in which to save the key (/home/username/.ssh/id_rsa): just 
hit Enter
Enter passphrase (empty for no passphrase): just hit Enter


Copy your public key to a Linux machine with sshd running
scp  .ssh/id_rsa.pub  [EMAIL PROTECTED]:~
(remotehost can be a host name or an ip address)  (substitute username 
with the actual user logon)
ssh  [EMAIL PROTECTED]
mkdir  .ssh
If the file ~/.ssh/authorized_keys exists, you probably don't want to 
destroy that file, do:
cat  id_rsa.pub  >> .ssh/authorized_keys
If the file ~/.ssh/authorized_keys does not exist, do:
mv  id_rsa.pub   .ssh/authorized_keys

NOTE: YOU WILL NEED TO ENTER PASSWORDS UNTIL THIS IS COMPLETED
-- 
Regards, Ernie
100% Microsoft and Intel free


--
[EMAIL PROTECTED] mailing list

Reply via email to