See: https://www.raspberrypi.org/documentation/remote-access/ssh/
Raspberry Pi
Via GUI:
- Launch Raspberry Pi Configuration from the Preferences menu
- Navigate to the Interfaces tab
- Select Enabled next to SSH
- Click OK
Via Config:
- Enter sudo raspi-config in a terminal window
- Select Interfacing Options
- Navigate to and select SSH
- Choose Yes
- Select Ok
- Choose Finish
Via Service:
sudo systemctl enable ssh sudo systemctl start ssh
Windows (via Putty)
- Download Putty client: greenend.org.uk
- Verify Setup: Specify Host, click Open
- Set KeepAlive: Connection \ Seconds between keepalives: 30
- Save Session