Permalink
Browse files

Update ruby script example.

  • Loading branch information...
lynaghk committed Mar 18, 2011
1 parent 3e731cc commit 52ce8a13d6bb616b4548086fb1ab4d0c52856a8d
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/authorized_keys_script.rb
@@ -19,7 +19,7 @@ def log(msg)
LOG.puts "[#{Time.now}] #{msg}" if LOG
end
-key = STDIN.gets
+user, key = STDIN.read.split("\n")
log("trying to authorize key: #{key}") if LOGGING
unless key =~ /^ssh-(?:dss|rsa) [A-Za-z0-9+\/]+$/

0 comments on commit 52ce8a1

Please sign in to comment.