#!/usr/bin/env python
-"""ssh-installkeys -- prepare a remote account for ssh access
-
-This script tries to export ssh public keys to a specified site. It will
+# ssh-installkeys -- prepare a remote account for ssh access
+"""This script tries to export ssh public keys to a specified site. It will
walk you through generating key pairs if it doesn't find any to export.
It handles all the fiddly details like making sure local and remote
permissions are correct, and tells you what it's doing if it has to change
anything.
Options:
-
-h Print usage summary and exit
-c Check local and remote configuration only, don't try to fix problems.
-d Delete remote .ssh configuration.
-v Report all commands sent to host and output received.
-Author: Eric S. Raymond <esr@thyrsus.com>
+Author: Eric S. Raymond <esr@thyrsus.com>"""
-$Id: ssh-installkeys,v 1.13 2003/12/04 00:44:45 esr Exp esr $
-"""
+# $Id: ssh-installkeys,v 1.14 2003/12/04 01:26:59 esr Exp esr $
import os, sys, getopt, string, getpass, tempfile
Currently pexpect is intended for UNIX operating systems (including OS-X)."""
__version__ = '0.94'
-__revision__ = '$Revision: 1.13 $'
+__revision__ = '$Revision: 1.14 $'
__all__ = ['ExceptionPexpect', 'EOF', 'TIMEOUT', 'spawn',
'__version__', '__revision__']
if __name__ == '__main__':
# Process options
- (options, arguments) = getopt.getopt(sys.argv[1:], "cdh:v")
+ (options, arguments) = getopt.getopt(sys.argv[1:], "cdhv")
check = 0
verbose = 0
delete = 0
elif (switch == '-d'):
delete = 1
elif (switch == '-h'):
- print __doc__ % login
+ print __doc__
raise SystemExit, 0
elif (switch == '-v'):
verbose = 1