This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: SSH uses HOME or HOMESHARE?


Nevermind. I figured it out. I should have read the README.

Newer versions of SSH don't use $HOME, instead the use the home directory listed in /etc/passwd. And my home directory in /etc/passwd was incorrect. After fixing that, everything works.

-----Original Message-----
From: Paul Stodghill 
Sent: Thursday, January 17, 2002 4:24 PM
To: Cygwin Mailing List (E-mail)
Subject: SSH uses HOME or HOMESHARE?


SSH seems to be ignoring HOME and using the value of HOMESHARE instead. 

This is a recent problem.

unset'ing HOMESHARE does not appear to help.

I understand that I can use the '-i' option to ssh, but I am really
interested in getting ssh-agent working.

Thanks.

quimby$ ssh -V
OpenSSH_3.0.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
quimby$ uname -a
CYGWIN_NT-5.0 QUIMBY 1.3.6(0.47/3/2) 2001-12-08 17:02 i686 unknown
quimby$ 
quimby$ printenv | grep -i '^HOME'
HOMESHARE=\\falcon\falcon_c\stodghil
HOMEDRIVE=C:
HOMEPATH=\
HOME=/home/stodghil
quimby$ printenv | fgrep -i falcon
HOMESHARE=\\falcon\falcon_c\stodghil
quimby$ ls $HOME/.ssh
config	identity  identity.pub	known_hosts  known_hosts~
quimby$ ls //falcon/falcon_c/stodghil/.ssh
ls: //falcon/falcon_c/stodghil/.ssh: No such file or directory
quimby$ ssh -v asp
OpenSSH_3.0.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 11330 geteuid 11330 anon 1
debug1: Connecting to asp [128.84.154.47] port 22.
debug1: temporarily_use_uid: 11330/10513 (e=11330)
debug1: restore_uid
debug1: temporarily_use_uid: 11330/10513 (e=11330)
debug1: restore_uid
debug1: Connection established.
debug1: identity file //falcon/falcon_c/stodghil/.ssh/identity type -1
debug1: identity file //falcon/falcon_c/stodghil/.ssh/id_rsa type -1
debug1: identity file //falcon/falcon_c/stodghil/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_2.9p2
debug1: match: OpenSSH_2.9p2 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
debug1: kex: server->client aes128-cbc hmac-md5 none
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: 139/256
debug1: bits set: 1006/2049
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host 'asp (128.84.154.47)' can't be established.
RSA key fingerprint is a3:cb:3b:6c:60:49:db:66:26:5a:01:cd:ab:1f:99:07.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'asp,128.84.154.47' (RSA) to the list of known hosts.
debug1: bits set: 1022/2049
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-interactive
debug1: next auth method to try is publickey
debug1: try privkey: //falcon/falcon_c/stodghil/.ssh/identity
debug1: try privkey: //falcon/falcon_c/stodghil/.ssh/id_rsa
debug1: try privkey: //falcon/falcon_c/stodghil/.ssh/id_dsa
debug1: next auth method to try is keyboard-interactive
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is password
stodghil@asp's password: 
debug1: packet_send2: adding 48 (len 62 padlen 18 extra_pad 64)
debug1: ssh-userauth2 successful: method password
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: shell
debug1: channel 0: open confirm rwindow 0 rmax 16384
Last login: Thu Jan 17 16:16:58 2002 from dhcp99-60.cs.cornell.edu
asp$ 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]