Date: Mon, 9 Jun 2003 09:59:18 -0700 From: "Thomas Park" <tpark@drivespeed.com> To: "'Matthew D. Fuller'" <fullermd@over-yonder.net> Cc: freebsd-questions@FreeBSD.ORG Subject: RE: /dev/tty keeps changing permissions..? Message-ID: <001101c32ea8$78544d40$11640a0a@titanium> In-Reply-To: <20030609164829.GK28798@over-yonder.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Matthew D. Fuller [mailto:fullermd@over-yonder.net] > > On Mon, Jun 09, 2003 at 09:41:01AM -0700 I heard the voice of > Thomas Park, and lo! it spake thus: > > > > Interesting. I have access to several FreeBSD 4.6 STABLE boxes, and > > /dev/tty on each of them looks thusly: > > 4.x doesn't have devfs, so /dev is static. It's just > internally (in the > kernel) that /dev/tty becomes 'dynamic' pointing to the > current tty. In > 5.x with devfs, it shows through in /dev. > By God, I see that you're right! I think the problem arises when I su into another account and try to ssh outbound. Which should arguably be possible without having to do arcane manipulations to the tty device, IMHO..? For example: ------------------ tpark 09:50:23 [~/drivespeed] ls -l /dev/tty crw--w---- 1 tpark tty 5, 0 Jun 9 09:53 /dev/tty tpark 09:56:39 [~/drivespeed] su - dspeed Password: dspeed 09:56:44 [~] dspeed 09:56:44 [~] ssh host.com Host key verification failed. dspeed 09:57:04 [~] ssh drivespeed.com Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password,keyboard-interactive). ------------------ And then the verbose version: ------------------ dspeed 09:57:11 [~] ssh -vv drivespeed.com OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f debug1: Reading configuration data /usr/etc/ssh_config debug1: Rhosts Authentication disabled, originating port will not be trusted. debug2: ssh_connect: needpriv 0 debug1: Connecting to drivespeed.com [66.39.78.245] port 22. debug1: Connection established. debug1: identity file /home/dspeed/.ssh/identity type -1 debug1: identity file /home/dspeed/.ssh/id_rsa type -1 debug1: identity file /home/dspeed/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1 debug1: match: OpenSSH_3.5p1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-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-c bc,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c bc,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9 6,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9 6,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: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-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-c bc,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c bc,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9 6,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-9 6,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 debug2: dh_gen_key: priv key bits set: 117/256 debug2: bits set: 1571/3191 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'drivespeed.com' is known and matches the RSA host key. debug1: Found key in /home/dspeed/.ssh/known_hosts:9 debug2: bits set: 1560/3191 debug1: ssh_rsa_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/dspeed/.ssh/identity debug1: Trying private key: /home/dspeed/.ssh/id_rsa debug1: Trying private key: /home/dspeed/.ssh/id_dsa debug2: we did not send a packet, disable method debug1: Next authentication method: keyboard-interactive debug2: userauth_kbdint debug2: we sent a keyboard-interactive packet, wait for reply debug1: Authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug1: Next authentication method: password debug2: we sent a password packet, wait for reply debug1: Authentications that can continue: publickey,password,keyboard-interactive Permission denied, please try again. debug2: we sent a password packet, wait for reply debug1: Authentications that can continue: publickey,password,keyboard-interactive Permission denied, please try again. debug2: we sent a password packet, wait for reply debug1: Authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug1: No more authentication methods to try. Permission denied (publickey,password,keyboard-interactive). debug1: Calling cleanup 0x805e170(0x0) dspeed 09:57:36 [~] ------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001101c32ea8$78544d40$11640a0a>