Monday, December 14, 2015

Remote access to Raspberry Pi using SSH terminal command

The SSH (Secure Shell) server of Raspberry Pi is enabled by default. To access Raspeberry Pi using SSH, follow the steps below:

1. Type ifconfig to get the IP address of Raspberry Pi.

2. If on a Mac, turn on the Terminal:

Finder -> Applications -> Utilities -> Terminal

3. Type this command in the terminal:

ssh pi@192.168.x.x

and enter the password.


4. To terminate the SSH connection, type exit.



==================

How to disable/enable the SSH server

1. Turn on the software configuration tool with this command:

sudo raspi-config

2. Select 8 Advanced Options.


3. Select A4 SSH.


4. Select disable/enable.


5. If you selected to disable the SSH server, reboot the Raspberry Pi with this command:
sudo reboot

6. If the SSH server has been disabled, you'll see this result with the previous ssh pi@192.168.x.x terminal command:


=============
Chinese version of this post:
以SSH指令遠端存取樹莓派

No comments:

Post a Comment