You will receive an error like the following if this issue is affecting you when running the "bosh/ssh" command:
Starting interactive shell on job loggregator_trafficcontroller-partition-###/0 Unauthorized use is strictly prohibited. All access and activity is subject to logging and monitoring. Received disconnect from #.#.#.# 2: Too many authentication failures for bosh_x' or Received disconnect from #.#.#.# 2: Too many authentication failures for vcap'
The likely reason that you receive this login failure could be that your ssh clients are automatically trying all your SSH keys when attempting to connect. If there are more than two ssh keys, the server will reject your connection.
There are a couple of options available to fix this issue:
ssh-add -D
bosh ssh
(
ssh-add -D deletes your cached keys in your ssh-agent allowing you to run bosh ssh without error.)Could not open a connection to your authentication agent,
You may need to start your agent by running the following command.eval `ssh-agent -s`
You can find the number of SSH keys you have loaded by running the following command (on OSx/Linux/Unix).ssh-add -l/L