April 2017
Beginner to intermediate
312 pages
7h 23m
English
While working on a project, SSH aliases can come handy for the remote access of the Raspberry Pi. An alias is a shortcut for any command. For example, an alias for SSH login can be implemented as follows:
nano ~/.bash_aliases
Add the following line to the file (make sure that the IP address of the Raspberry Pi is added):
alias my_pi='ssh pi@192.168.1.2 -p 2'
Load the alias file:
source ~/.bash_aliases
Now, we can access the pi simply by calling my_pi into the Command Prompt. Try it for yourself!
Read now
Unlock full access