On 31/08/08 21:18:21, Chris G wrote:
On Sun, Aug 31, 2008 at 09:07:30PM +0100, Barry Samuels wrote:
My SSH is set up to work via a key only i.e. no logins.
I can use SSH from my laptop to connect to my desktop over my home network with no problems however if I try it via the Internet, when away from home, I get 'access denied (Publickey)'.
Would there be a known reason for that?
Is it possibly that your router isn't allowing the ssh packets through?
I have been able to rule that out. The error message is coming from SSH which means the connection is getting passed the firewall.
Or is the ssh server set up to allow only connections from the local network?
I didn't know that there was such an option.
Or (and I think this *is* probably the answer) does your laptop have a different address when connecting from 'outside'?
Almost certainly.
The ssh keys you have set up allow connections from specific hosts so a connection set up that works when the laptop has a local IP address will not work when the laptop has an IP address given to it by some other network.
So if one is travelling and staying in a hotel with wifi facilities then connection via SSH is not possible. Is that true?