Ah! Yeah, currently, if you specify PasswordAuthentication or PubkeyAuthentication in your ssh_config file, Net::SSH will use those exclusively (and not try any other authentication methods).
- Jamis On 2/11/09 9:42 PM, Eric Bolden wrote: > It works now. Thanks for your help. > > It turned out to be some uncommented lines in my ssh_config file. > > if I uncomment any of the three following lines, I see the failure: > ## PasswordAuthentication yes > ## Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128- > cbc,arcfour,aes192-cbc,aes256-cbc > ## MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160 > > > if I uncomment ## PasswordAuthentication yes, then I get this error. > > D, [2009-02-11T22:35:00.894215 #2626] DEBUG -- > net.ssh.authentication.session[8fa872]: beginning authentication of > `support' > D, [2009-02-11T22:35:00.894466 #2626] DEBUG -- tcpsocket[ab5ee6]: > queueing packet nr 4 type 5 len 28 > D, [2009-02-11T22:35:00.894622 #2626] DEBUG -- tcpsocket[ab5ee6]: sent > 52 bytes > D, [2009-02-11T22:35:01.090596 #2626] DEBUG -- tcpsocket[ab5ee6]: read > 52 bytes > D, [2009-02-11T22:35:01.091079 #2626] DEBUG -- tcpsocket[ab5ee6]: > received packet nr 4 type 6 len 28 > D, [2009-02-11T22:35:01.091337 #2626] DEBUG -- > net.ssh.authentication.session[8fa872]: trying password > E, [2009-02-11T22:35:01.091525 #2626] ERROR -- > net.ssh.authentication.session[8fa872]: all authorization methods > failed (tried password) > connection failed for: sage.example.com > (Net::SSH::AuthenticationFailed: support) > > if I uncomment ## Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128- > cbc,arcfour,aes192-cbc,aes256-cbc, then I get this error. > > D, [2009-02-11T22:37:38.054608 #2669] DEBUG -- > net.ssh.transport.session[ab609e]: establishing connection to > sage.example.com:22 > D, [2009-02-11T22:37:38.154510 #2669] DEBUG -- > net.ssh.transport.session[ab609e]: connection established > I, [2009-02-11T22:37:38.154731 #2669] INFO -- > net.ssh.transport.server_version[ab5d74]: negotiating protocol version > D, [2009-02-11T22:37:38.259771 #2669] DEBUG -- > net.ssh.transport.server_version[ab5d74]: remote is `SSH-2.0- > OpenSSH_5.1' > D, [2009-02-11T22:37:38.259942 #2669] DEBUG -- > net.ssh.transport.server_version[ab5d74]: local is `SSH-2.0-Ruby/ > Net::SSH_2.0.10 universal-darwin9.0' > connection failed for: sage.example.com (NotImplementedError: > unsupported encryption algorithm: `arcfour') > > if I uncomment ## MACs hmac-md5,hmac-sha1,[email protected],hmac- > ripemd160, then I get this error. > > D, [2009-02-11T22:39:00.540102 #2699] DEBUG -- > net.ssh.transport.session[ab6062]: establishing connection to > sage.example.com:22 > D, [2009-02-11T22:39:00.636295 #2699] DEBUG -- > net.ssh.transport.session[ab6062]: connection established > I, [2009-02-11T22:39:00.636551 #2699] INFO -- > net.ssh.transport.server_version[ab5d38]: negotiating protocol version > D, [2009-02-11T22:39:00.742946 #2699] DEBUG -- > net.ssh.transport.server_version[ab5d38]: remote is `SSH-2.0- > OpenSSH_5.1' > D, [2009-02-11T22:39:00.743155 #2699] DEBUG -- > net.ssh.transport.server_version[ab5d38]: local is `SSH-2.0-Ruby/ > Net::SSH_2.0.10 universal-darwin9.0' > connection failed for: sage.example.com (NotImplementedError: > unsupported hmac algorithm: `[email protected]') > > > > my current working version of the ssh_config file is listed below. > > > $ cat /etc/ssh_config > Host * > ForwardAgent no > ForwardX11 yes > ForwardX11Trusted yes > RhostsRSAAuthentication no > RSAAuthentication yes > ## PasswordAuthentication yes > HostbasedAuthentication no > # GSSAPIAuthentication yes > # GSSAPIDelegateCredentials no > # GSSAPIKeyExchange yes > # GSSAPITrustDNS no > BatchMode no > CheckHostIP yes > AddressFamily any > ConnectTimeout 0 > StrictHostKeyChecking ask > IdentityFile ~/.ssh/identity > IdentityFile ~/.ssh/id_rsa > IdentityFile ~/.ssh/id_dsa > Port 22 > Protocol 2 > Cipher 3des-cbc > ## Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128- > cbc,arcfour,aes192-cbc,aes256-cbc > ## MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160 > EscapeChar ~ > # Tunnel no > # TunnelDevice any:any > # PermitLocalCommand no > > On Feb 11, 2009, at 5:32 PM, Jamis Buck wrote: > >> I suspect that your deploy.rb isn't the whole picture. Have you added >> anything to the Capfile? Do you have a ~/.caprc file with anything >> in it? >> >> - Jamis >> >> On 2/11/09 4:23 PM, Eric Bolden wrote: >>> Jamis Thanks for the blazingly quick reply! >>> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
