How to communicate with PI Through the SSH


If you don’t setup the software of ssh,input:
##the one be controled
sudo apt-get install openssh-server
##the one controls the server
sudo apt-get install openssh-client

make sure the ssh server is started:
ps -e | grep ssh

if not:
/etc/init.d/ssh start

Connect Pi and Router with reticle .Make sure that the network is OK and the Pi can ping successful.Then to find the Pi’s IP:
ifconfig -a

usually the router will set the LAN’s IP between 192.168.1.100 ~ 192.168.1.199.Mine is 192.168.1.100. Then in your ssh client PC,input:
ssh pi@192.168.1.100

to connect the ssh server(Pi).Then input the password of the user with Pi,and you can control the Pi with ssh.