When you say login, do you mean so you have shell access?
Well, there are two main ways:
Telnet: very insecure since it sends everything you type (inc usernames and passwords) in plain, unencrypted text.
ssh: far more secure (use the ssh2 protocol since the first one had a nasty flaw in it). This encrypts everything before sending it.