Configuring SSH servers on Ubuntu

March 25, 2016 | Posted in SSH

If you need to SSH to multiple servers regularly, this is the simplest way to do this:

  • Create a file (if it doesn't already exist) ~/.ssh/config

  • Add the following entry for each of your servers

    Host blog
      HostName ec2-192-168-1-1.compute-1.amazonaws.com
      User ec2-user
      IdentityFile ~/.ssh/acces-key.pem
    
  • To SSH to your server, run ssh blog

  • To browse the files on your server, open any file, go to File > Connect to server.. In server address, enter sftp://blog and you will be able to browse files in your server.

Related Posts

27 Feb 2017 » Provisioning an ubuntu server for Django, Postgres, NGINX

01 May 2015 » Supervisor in Elastic Beanstalk

04 Sep 2014 » Forwarding port to a PostgreSQL server

13 Dec 2013 » Using Tata Photon Plus in Linux

26 Jul 2013 » A simple javascript game