Getting Started with SSH
Install openssh server on receiving machine
sudo apt-get install openssh-server
Ensure SSH Server is Running
sudo service ssh status
# if inactive run the following
sudo service ssh start
Connect to Server
ssh <username>@<server-ip>
# for example
ssh drew@10.1.2.2.2
The above is a private IP since I'm on the same network at the machine I'm SSHing into. If you are not on the same network
How to Get Server’s IP
# run the following on the server
ip route
# default via 10.0.0.1 dev wlan0 proto dhcp src 10.0.0.42 metric 303
# 10.0.0.0/24 dev wlan0 proto dhcp scope link src 10.0.0.42 metric 303
Use the IP after src
. So in this example, it would be 10.0.0.42
. The above example is a private ip. To get a server’s public IP, run the following on it:
curl ipinfo.io/ip