using an ssh tunnel and port forwarding through it helps immeasurably in those situations.
i.e.,
Code:
ssh -f -L 11371:KEY_SERVER_NAME:11371 SSH_HOST_NAME -N
using this method, you would connect to localhost instead of the normal hostname. to use the hostname you posted as an example:
Code:
#!/bin/bash
KEYHOST=localhost
sudo gpg --keyserver $KEYHOST --recv-keys $1
sudo gpg --armor --export $1 | sudo apt-key add -
ssh is a lifesaver in the land of corporates, so long as you have the ability to get out on port 22 at least.
Bookmarks