ArcShell

arcshell_ssh_connections.sh

Reference

ssh_show

Returns the name of the current connection if it has been set..

> ssh_show

ssh_refresh

Refreshes the ssh connection database anytime they are modified.

> ssh_refresh

ssh_list

Returns the list of ssh connections.

> ssh_list [-a] [-l]
# -a: Return path to all connections.
# -l: Return path to all relevant connections.

ssh_list_pretty

List ssh nodes. Pretty format: user@host, (alias), and [tags].

> ssh_list_pretty

ssh_add

Adds or updates an ssh connection.

> ssh_add -port X -alias "X" -key "X" -tags "X," "user@address"
# -port: SSH port number. Defaults to 22.
# -key: Path to private key file, or file name only if in one of the 'ssh_keys' folders or "\${HOME}/.ssh".
# -tags: Comma separated list of tags. Tags are one word.
# user@address: User name and host name or IP address.

ssh_edit

Edit the specified ssh connection config file. Defaults to local node.

> ssh_edit ["ssh_connection"]

ssh_delete

Deletes an ssh connection.

> ssh_delete "ssh_connection"

ssh_set

Sets the current connection.

> ssh_set "ssh_connection"
# ssh_connection: SSH node, alias, group, or tag.

ssh_unset

Unset the current ssh connection.

> ssh_unset

ssh_list_groups

List the ssh groups.

> ssh_list_groups

ssh_list_tags

List the ssh tags.

> ssh_list_tags

ssh_list_group

Return the list of node names in a group.

> ssh_list_group "ssh_group"

ssh_list_tag

Return the list of node associated with a tag.

> ssh_list_tag "ssh_tag"

ssh_load

Load the attributes for an ssh node.

> eval "$(ssh_load "node")"