Security – Is it really secure to connect to a server by SSH from hotels during a journey

physical-securitySecurity

Is it really secure to connect to a server using SSH from hotels during a journey?

Server:
– CentOS 7
– Authorisation only by RSA key – password auth is denied
– Non-standard port

Workstation:
– Ubuntu 14
– user password
– password to use RSA key (standard method)

Maybe it will be a good idea to keep half of the private RSA key on a USB stick, and automatically (by script) add this half to ~/.ssh/private_key before connecting?

Internet will be through either WIFI in hotels, or cable in a rented apartment.

UPD
Sorry for being unclear at first. I mean security in two aspects here:

  1. Security of just the SSH connection through an untrusted network.
  2. Security of a computer with the key necessary for the SSH connection – if it is stolen, how to protect the server…

Best Answer

So, regarding making an ssh connection over an explicitly untrusted connection.

Assuming you already have an ~/.ssh/known_hosts entry from a previous connection, yes you should be able to connect without worrying about whatever the network is safe or not. The same goes if you have some other means of verifying the ssh host key.

If you have never connected to the server before, nor having any other way of verifying the ssh host key, then you might want be more careful regarding the network you use to connect.