lib/net/ssh.rb in net-ssh-6.1.0.rc1 vs lib/net/ssh.rb in net-ssh-6.1.0

- old
+ new

@@ -249,10 +249,10 @@ end transport = Transport::Session.new(host, options) auth = Authentication::Session.new(transport, options) - user = options.fetch(:user, user) || Etc.getlogin + user = options.fetch(:user, user) || Etc.getpwuid.name if auth.authenticate("ssh-connection", user, options[:password]) connection = Connection::Session.new(transport, options) if block_given? begin yield connection