Listing Available Private Keys
The SOCKS Proxy will search and use keys from the following locations:
- keys defined in the
key-store
element in the /etc/ssh2/ssh-socks-proxy-config.xml
file
- keys defined in the
key-store
element in the $HOME/.ssh2/ssh-socks-proxy-config.xml
file
- keys defined in the
$HOME/.ssh2/identification
file
- keys found in the
$HOME/.ssh2
directory
To list the public-key pairs that are available for the SOCKS Proxy, give the
following command:
> ssh-socks-proxy-ctl list-keys
The command prints a list of available private keys, showing basic key
attributes such as key type, size and possible file name or key provider
information. Also fingerprint and key identifier are displayed. The key
identifier is a number that is used by other ssh-socks-proxy-ctl
commands to identify the private key uniquely.
Running the command with the -s
option produces a shorter output,
for example (key hash value omitted):
> ssh-socks-proxy-ctl list-keys -s
#2 ... ssh-dss /home/user1/.ssh2/id_dsa_1024_a dsa 1024
#1 ... ssh-rsa /home/user1/.ssh2/id_rsa_1536_a rsa 1536
|
The first number on the line is the key identifier.