Via putty

If you are in windows machine. I highly recommend this method. Steps:

  1. Add host, port and chose connection type in putty
  2. click open in lower right
  3. a console will appear.
    • First input username.
    • push enter.
    • input password
    • push enter.
  4. !!! Yehey you are logged in!!!

Via ssh command in any linux based server

steps:

  1. Open terminal(cmd)
  2. input the following command: ssh username@host. ie:
    ssh cliff@8.8.8.8
    
  3. The console will ask for credentials.
    • First input username.
    • push enter.
    • input password
    • push enter.
  4. !!! Yehey you are logged in!!!

Directory you might be interested to explore: (asuming that you are using LAMP)

  1. site configurations:
    • /etc/apache2/sites-available/
    • /etc/apache2/sites-enabled/
  2. site root directory
    • /var/www

Useful commands in linux :

each command will not be explained in detail. Use the --help tag instead to see detailed explanation, parameters and use case. ie cd --help, ‘pwd –help’

  • passwd
    • change password of current user
  • pwd
    • Print the name of the current working directory.
  • cd
    • Change the current directory to DIR.
  • mv
    • move a file from source to destination
  • cp
    • copy file from source to destination
  • ls
    • list down all directory and files in the current directory
    • ls -la gives a lot more info 😀
  • ssh
    • remove login
  • vi
    • open the vi editor.

Tags: , , , ,

Leave a Reply