bug #1396. Deprecate key command and upload fix as proposed by Rogier Mars

This commit is contained in:
Ruben S. Montero committed 2012-07-27 22:17:05 +02:00
1 parent 080af50431
commit ec533433fd
1 file changed
+5 -3
+5 -3
View File
@@ -221,9 +221,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
Creates the Login token for authentication
Examples:
oneuser login my_user --ssh --key /tmp/id_rsa --time 72000
oneuser login my_user --x509 --cert /tmp/my_cert.pem \
oneuser login my_user --x509 --cert /tmp/my_cert.pem
--key /tmp/my_key.pk --time 72000
oneuser login my_user --x509_proxy --proxy /tmp/my_cert.pem \
oneuser login my_user --x509_proxy --proxy /tmp/my_cert.pem
--time 72000
EOT
@@ -232,6 +232,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
end
key_desc = <<-EOT.unindent
DEPRECATED, use login to generate auth files.
Shows a public key from a private SSH key. Use it as password
for the SSH authentication mechanism.
EOT
@@ -247,7 +249,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
exit_with_code -1, e.message
end
puts sshauth.public_key
puts sshauth.password
exit_with_code 0
end