Re: OpenSSH Passwordless Authentication between 2 systems with different UID's



d3vn0ll wrote:


<kaka.hui@xxxxxxxxx> schreef in bericht
news:1162161214.015618.237740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Toni... I tried what you mentioned. But it still prompt me
for
the password. What else could be missing? Also ssh -vw and ssh
-ddd is not a valid option for OpenSSH.

I have the same problem. Do not us -vvv. Just use one v .
I am still searching.

Carlo
Here is what I did to get it to work (note scp command line has
word-wrapped). I also created a tempuser to ensure it would work with
differnt UIDs;

malcolml@muppet-oscar:~> ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/malcolml/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/malcolml/.ssh/id_dsa.
Your public key has been saved in /home/malcolml/.ssh/id_dsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx malcolml@muppet-oscar
malcolml@muppet-oscar:~> scp .ssh/id_dsa.pub
malcolml@muppet-solaris:id_dsa.pub
Password:
id_dsa.pub 100% 6110.6KB/s 00:00
malcolml@muppet-oscar:~> ssh malcolml@muppet-solaris
Password:
Last login: Tue Oct 31 14:40:12 2006 from xxx.xxx.xxx.xxx
[malcolml@muppet-solaris]$ mv id_dsa.pub .ssh/authorized_keys
[malcolml@muppet-solaris]$ chmod 600 .ssh/authorized_keys
[malcolml@muppet-solaris]$ exit
Connection to muppet-solaris closed.
malcolml@muppet-oscar:~> ssh malcolml@muppet-solaris
Last login: Tue Oct 31 14:41:50 2006 from xxx.xxx.xxx.xxx
[malcolml@muppet-solaris]$

# useradd -d /export/home/tempuser -m tempuser
64 blocks
# passwd tempuser
New Password:
Re-enter new Password:
passwd: password successfully changed for tempuser
# exit
[malcolml@muppet-solaris]$ exit
Connection to muppet-solaris closed.
malcolml@muppet-oscar:~> scp .ssh/id_dsa.pub
tempuser@muppet-solaris:id_dsa.pub
Password:
id_dsa.pub 100% 611 0.6KB/s 00:00
malcolml@muppet-oscar:~> ssh tempuser@muppet-solaris
Password:
Last login: Tue Oct 31 14:45:29 2006 from xxx.xxx.xxx.xxx
$ mv id_dsa.pub .ssh/authorized_keys
$ chmod 600 .ssh/authorized_keys
$ exit
Connection to muppet-solaris closed.
malcolml@muppet-oscar:~> ssh tempuser@muppet-solaris
Last login: Tue Oct 31 14:46:26 2006 from xxx.xxx.xxx.xxx
$

$ ssh -version
OpenSSH_4.3p2, OpenSSL 0.9.8d 28 Sep 2006
$ exit
Connection to muppet-solaris closed.

malcolml@muppet-oscar:~> ssh -version
OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005
malcolml@muppet-oscar:~>

--
Cheers Malcolm °¿°
SUSE 10.0 x86_64 Kernel 2.6.13-15.12-smp
up 12 days 2:07, 5 users, load average: 0.04, 0.03, 0.04

.



Relevant Pages

  • Re: Achieving tunneling convenience
    ... Not quite - I would download (one connection) write replys, ... executed after ssh is backgrounded, ... >>gracefully exit the backgrounded ssh ...
    (SSH)
  • Re: Tried everything, but PKA will not play nice with TB2 (darn it)
    ... > sshkeygen to generate yourself a public/private keypair. ... > prompted for a passphrase which is used to encrypt the private key. ... > connect to using ssh. ... > also set it to abort the connection attempt rather than fall back to ...
    (comp.sys.mac.system)
  • Re: ssh to my computer behind NAT
    ... I would like to be able to ssh to my home computer located behind my ... middle to connect to my home system from the outside world? ... exit from that and back to the remote system. ... Connection to 192.168.0.191 closed. ...
    (Fedora)
  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • Re: Problem connecting to SSH, OpenVMS7.3-2, HP TCP/IP v5.4 patched
    ... warning: Authentication failed. ... connection lost (Connection closed by remote host.). ... So, as you can see, I am trying to make an ssh connection with the ...
    (comp.os.vms)