I have used ssh before to login to a remote server connected via LAN.
I have two personal computers running on Ubuntu. Is it possible to connect the two using ssh so that I can login from one system to another and vice-versa? If so, how?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Yes, you can.
First, make sure package
openssh-server is installed on both of them. Then, fire up terminal and type:
ssh email@example.com - if you are on the same network
ssh username@local-ip - same as above
or if you are connected to different networks:
You can also setup password-less connection.
First, generate keys using
ssh-keygen (you can leave everything default).
Then, copy your public key using
ssh-copy-id firstname.lastname@example.org (as above)
Repeat the process from the other machine.