SSH portable | passwordless logins
From: Starz McCllelan (starzm@graffiti.net)Date: 12/24/01
- Next message: patrick: "Setting up SSH Protocol 1 3rd Auth. Method (via man ssh), how?"
- Previous message: Richard E. Silverman: "Re: how can i set different crt for each of virtul host in apache?"
- Next in thread: WarpKat: "Re: SSH portable | passwordless logins"
- Reply: WarpKat: "Re: SSH portable | passwordless logins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: starzm@graffiti.net (Starz McCllelan) Date: 23 Dec 2001 23:14:19 -0800
I have been trying (7+ hours) now to get a passwordless login working
between my two computers, with the pub/private key auth but I'm
makeing it nowhere, I have found no guides, and I don't like just
jumping into this question but I'm running out of patience...
Is there a good guide, or some kind of documentation that will get me
through this??
In case there's not here's step by step what I've done and what I've
gotten (with both systems linux/openssh3.0.2p1)
I tried with defaults which (of course) didn't work so I changed the
/usr/local/etc/sshd_config to
Port 22
KeepAlive yes
PasswordAuthentication no
PermitEmptyPasswords no
PermitRootLogin yes
Protocol 2
StrictModes yes
HostKey /usr/local/etc/ssh_host_key
HostKey /usr/local/etc/ssh_host_rsa_key
HostKey /usr/local/etc/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
RSAAuthentication yes
which I admit is a little simplistic, but most of the defaults suited
me fine...
then, I would do a ssh-keygen...take the identity.pub (by floppy) to
the new computer, do a "cat /mnt/floppy/identity.pub >>
/home/joiek/.ssh/authorized_hosts"
Next I would start ssh-agent useing "ssh-agent /bin/bash"
Then I just plain tried to login to the computer with "ssh {correct ip
here}"
only to get...
root:/mnt# ssh -v -v -v {real ip here}
OpenSSH_3.0.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 0 geteuid 0 anon 1
debug1: Connecting to {server ip here} [{server ip here}] port 22.
debug1: temporarily_use_uid: 0/0 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 0/0 (e=0)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file /root/.ssh/identity type 0
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.0.2p1
debug1: match: OpenSSH_3.0.2p1 pat ^OpenSSH
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.0.2p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-gro
up1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-c
bc@lysator.liu.se
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-c
bc@lysator.liu.se
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 130/256
debug1: bits set: 1618/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /root/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug1: Host '65.5.163.167' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: bits set: 1632/3191
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue:
publickey,password,keyboard-interacti
ve
debug3: start over, passed a different list
publickey,password,keyboard-interact
ive
debug3: preferred publickey,keyboard-interactive
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive
debug3: authmethod_is_enabled publickey
debug1: next auth method to try is publickey
debug2: userauth_pubkey_agent: no keys at all
debug2: userauth_pubkey_agent: no more keys
debug2: userauth_pubkey_agent: no message sent
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred:
debug3: authmethod_is_enabled keyboard-interactive
debug1: next auth method to try is keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: authentications that can continue:
publickey,password,keyboard-interacti
ve
debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug1: no more auth methods to try
Permission denied (publickey,password,keyboard-interactive).
debug1: Calling cleanup 0x8068380(0x0)
most of this should be pretty accurate although some things have been
changed to protect the innocent :)
If it's not accurate I blame it on X ;)
Thanks for any help in advance,
Starz McCllelan
starzm@graffiti.net
- Next message: patrick: "Setting up SSH Protocol 1 3rd Auth. Method (via man ssh), how?"
- Previous message: Richard E. Silverman: "Re: how can i set different crt for each of virtul host in apache?"
- Next in thread: WarpKat: "Re: SSH portable | passwordless logins"
- Reply: WarpKat: "Re: SSH portable | passwordless logins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|