Logging in through ssh for the first time can be very intimidating. The best way to learn how to bash is to start with basic things. First I will show you how to login to a server.

ssh user@ip -p2222 – it will then prompt you for the password and bam your in!

Once you get into bash for the first time You can use the command pwd to find out where you are at.

Example of what it looks like when you run pwd:

pwd
/home/johnno

You can then run a command called ls -lah or ll to show the list of all of your files.

Example of what it looks like when you run ls -lah:

ls -lah
total 40K
drwx–x–x. 15 johnno johnno 4.0K Apr 3 05:49 .
drwx–x–x. 16 root root 283 Apr 8 13:27 ..
lrwxrwxrwx. 1 johnno johnno 32 Apr 2 13:53 access-logs -> /etc/apache2/logs/domlogs/johnno
-rw-r–r–. 1 johnno johnno 18 Apr 2 13:36 .bash_logout
-rw-r–r–. 1 johnno johnno 193 Apr 2 13:36 .bash_profile
-rw-r–r–. 1 johnno johnno 231 Apr 2 13:36 .bashrc
-rw-r—–. 1 johnno johnno 23 Apr 2 14:42 .contactemail
drwx——. 5 johnno johnno 117 Apr 7 00:52 .cpanel
drwx——. 4 johnno johnno 53 Apr 2 13:36 .cphorde
drwxr-x—. 3 johnno mail 60 Apr 3 16:31 etc
-rw——-. 1 johnno johnno 16 Apr 3 05:49 .ftpquota
drwxr-xr-x. 2 johnno johnno 6 Apr 2 13:36 .htpasswds
-rw——-. 1 johnno johnno 40 Apr 2 13:36 .lastlogin
drwx——. 2 johnno johnno 229 Apr 6 20:51 logs
drwxr-x–x. 10 johnno johnno 4.0K Apr 3 17:12 mail
drwxrwxr-x. 2 johnno johnno 6 Apr 2 15:19 perl5
drwxr-x—. 3 johnno johnno 22 Apr 2 13:36 public_ftp
drwxr-xr-x. 12 johnno johnno 4.0K Apr 7 00:52 public_html
drwxr-xr-x. 5 johnno johnno 77 Apr 7 00:52 ssl
drwxr-xr-x. 7 johnno johnno 136 Apr 3 14:05 tmp
drwx——. 3 johnno johnno 85 Apr 3 16:47 .trash
drwxr-xr-x. 3 johnno johnno 20 Apr 2 13:36 var
lrwxrwxrwx. 1 johnno johnno 11 Apr 2 13:36 www -> public_html
-rw-r–r–. 1 johnno johnno 658 Apr 2 13:36 .zshrc

You are currently in the home directory for the user johnno

If you want to change directories and go to another one you can simple type the command cd

Here is an example of when you run cd and then ls -lah after

cd public_html

ls -lah
total 6.8M
drwxr-xr-x. 12 johnno johnno 4.0K Apr 7 00:52 .
drwx–x–x. 15 johnno johnno 4.0K Apr 3 05:49 ..
drwxr-xr-x. 7 johnno johnno 4.0K Apr 3 12:13 13thlegionsports.com
drwxr-xr-x. 2 johnno johnno 109 Dec 31 20:06 backups
drwxr-xr-x. 6 johnno johnno 4.0K Apr 7 00:52 canucheck.com
drwxr-xr-x. 2 johnno johnno 6 Jan 28 2016 cgi-bin
-rw-r–r–. 1 johnno johnno 4.1K Aug 12 2015 default.html
-rw-r–r–. 1 johnno johnno 14K Apr 3 17:18 error_log
-rw-r–r–. 1 johnno johnno 8.0K Apr 7 20:01 .htaccess
-rw-r–r–. 1 johnno johnno 144 Apr 3 15:25 index.html
-rw-r–r–. 1 johnno johnno 418 Mar 24 2016 index.php
-rw-r–r–. 1 johnno johnno 2.7M Apr 2 13:51 johnno_wrdp1.sql
-rw-r–r–. 1 johnno johnno 20K Apr 3 15:59 license.txt
-rw-r–r–. 1 johnno johnno 3.9M Feb 28 20:12 Med2.png
drwxr-xr-x. 5 johnno johnno 86 Mar 25 16:50 practicebash
drwxr-xr-x. 2 johnno johnno 4.0K Apr 3 01:55 .qidb
-rw-r–r–. 1 johnno johnno 7.3K Apr 3 15:59 readme.html
drwxr-xr-x. 2 johnno johnno 6 Jan 11 00:21 test
-rw-r–r–. 1 johnno johnno 5.4K Dec 6 22:13 wp-activate.php
drwxr-xr-x. 10 johnno johnno 4.0K Mar 18 16:06 wp-admin
-rw-r–r–. 1 johnno johnno 364 Apr 12 2016 wp-blog-header.php
-rw-r–r–. 1 johnno johnno 1.6K Dec 6 22:13 wp-comments-post.php
-rw-r–r–. 1 johnno johnno 3.3K Apr 7 20:01 wp-config.php
-rw-r–r–. 1 johnno johnno 2.8K Mar 24 2016 wp-config-sample.php
drwxr-xr-x. 7 johnno johnno 148 Apr 8 19:10 wp-content
-rw-r–r–. 1 johnno johnno 3.3K Mar 24 2016 wp-cron.php
drwxr-xr-x. 18 johnno johnno 8.0K Dec 27 11:58 wp-includes
-rw-r–r–. 1 johnno johnno 2.4K Dec 6 22:13 wp-links-opml.php
-rw-r–r–. 1 johnno johnno 3.3K Dec 6 22:13 wp-load.php
-rw-r–r–. 1 johnno johnno 34K Dec 6 22:13 wp-login.php
-rw-r–r–. 1 johnno johnno 7.9K Jan 11 15:26 wp-mail.php
-rw-r–r–. 1 johnno johnno 16K Dec 6 22:13 wp-settings.php
-rw-r–r–. 1 johnno johnno 30K Dec 6 22:13 wp-signup.php
-rw-r–r–. 1 johnno johnno 4.5K Dec 6 22:13 wp-trackback.php
-rw-r–r–. 1 johnno johnno 3.0K Dec 6 22:13 xmlrpc.php
-rw-r–r–. 1 johnno johnno 18K Apr 3 14:05 youre-fired2.jpg

This is simple to start with now you can focus on logging in using, pwd, ls -lah, and cd. Navigate through the folders with that until you get comfortable with where all of your files are setup.