André Saunite - 2012-09-18

The 'ac' software is a Command Line Connection Manager, intended to be used with your favorite Terminal Emulator (Konsole, yakuake, gnome-termina, xterm, and so on) or in machines without a X window system.

It is very simple, basically you create a connection, and then instead of having to give username and password all the time, you just run 'ac <connection name="">' and it connects you right away.</connection>

You can also create connections inside connection! Making it easy to go jumping from one server to another in case you need to, you can save the grouping connections so it is even easier to use.

Usage: 
ac [-a|-d|-x|-l|-h|-m|-s] [-n name|-i ip|-P port|-u user|-p password|
    -k ssh key_identity_file|-c comment|-t type|-o ssh_options|
    -E commands_after_connection] [name] 

 To connect to a saved connection
  ac <name> [<name_01>...<name_N>|<command>]
    name [<name_01>...<name_N]  Where 'name' and 'name_XX' are the names of 
                                saved connections (If you specify more than a 
                                name, it will connect to one node, then from 
                                that node connect to the other, and so on, 
                                until the end of the list)
    <command>                   In case the next argument is not a connection
                                the script will assume it is a command, then it
                                will connect, send the command, and disconnect.

 To add / save a connection:
  ac -a -n <name> -i <ip_address> -u <user> -t <type> 
    [-P <port_number>|-p <password>|-k <ssh_key_id_file>|-c <comment>]

   -n <name>         Name of the connection to be created
   -i <ip_address>   IP address or hostname of the node
   -t <type>         Connection type, supported ones are 
                     'ftp sftp ssh telnet'
   -u <user>         User on the remote host
   -P <port_number>  Port number to connect to (if omitted then the 
                     default one for the type will be used)
   -p <password>     Password for the user, if omitted or entered a 
                     dash (-) then will be prompted (This option 
                     is not supported if using -k)
   -k <key_id_file> SSH Key Id file, this option is not supported together
                     with -p
   -c <comment>      Comment for the connection (optional)
   -E <commands>     The commands to send to the node right after the 
                     connection is established (if more then one command,
                     then they should be separated by semicolon ';')

 To delete a saved connection
  ac -x <name> Name of the connection or group to be deleted
                     (In case the connection belong to a group, it cannot 
                     be deleted)

 To modify a saved connection
  ac -m <name> [-n <new name>] [-i <ip_address>] [-u <user>] [-t <type>]
   [-P <port_number>] [-p <password>] [-k <ssh_key_id_file>] [-c <comment>]

   -m <name>          Name of the connection to be changed
   -n <name>          New name of the connection
   -i <ip_address>    New IP address or hostname of the node
   -t <type>          New connection type, supported ones are
                      'ftp sftp ssh telnet'
   -u <user>          New user on the remote host
   -P <port_number>   New port number to connect to
   -p <password>      New password for the user, if entered a dash (-) then 
                      will be prompted (his option is not supported with -k)
   -k <key_id_file>   New ssh key identification file, not supported together 
                      with -p
   -c <comment>       New comment for the connection (optional)
                      (All parameters are optional while modifying, but at 
                      least one should be specified)
   -E <commands>      New commands to send to the node right after the 
                      connection is established (if more then one command,
                     then they should be separated by semicolon ';')

 To duplicate / clone a saved connection
  ac -d <name> -n <new name> [-i <ip_address>] [-u <user>] [-t <type>] 
   [-P <port_number>] [-p <password>] [-k <ssh_key_id_file>] [-c <comment>]

   -d <name>          Name of the saved connection 
   -n <new_name>      Name of the new connection
   -i <ip_address>    New IP address or hostname of the node
   -t <type>          New connection type, supported ones are 
                      'ftp sftp ssh telnet'
   -u <user>          New user on the remote host
   -P <port_number>   New port number to connect to
   -p <password>      New password for the user, if entered a dash (-) then 
                      will be prompted (this option is not supported with -k)
   -k <key_id_file>       New ssh key identification file, not supported together 
                      with -p
   -c <comment>           New comment for the connection (optional)
   -E <commands>      New commands to send to the node right after the 
                      connection is established (if more then one command,
                     then they should be separated by semicolon ';')
         (All parameters are optional while duplicating, except <new_name>)

 To print saved connections or preferences
   -lc                  Print connections
   -lg                  Print groups
   -lp                  Print preferences

 To show details from a saved connection
  ac -s <name> [-e]  Where 'name' is the name of a saved connection
                       (if -e is used, the password will be show)

 Print usage
   -h                   Show this help and exit

Hope you enjoy!
André Saunite

 

Last edit: André Saunite 2012-09-25