Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • How to install SSH server on Ubuntu 14.04?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.09k
    Comment on it

    Install SSH Server on Ubuntu 14.04

    In order to install SSH server on Ubuntu, you need to install OpenSSH server package. Use the following command to setup SSH server:

    sudo apt-get install openssh-server

    Configure SSH Server

    After installation is done, edit the /etc/ssh/sshd_config file. Take the backup first by typing:

    sudo cp -a /etc/ssh/sshd_config /etc/ssh/sshd_config_backup

    Now edit the file using command:

    sudo nano /etc/ssh/sshd_config

    Edit the following

    # ports, IPs and protocols
    Port 2122

    Now for more security edit the following:

    Set PermitRootLogin to no so that there is no root login allowed

    # Authentication:
    LoginGraceTime 120
    PermitRootLogin no

    Now allow users to access the system remotely by adding to sshd_config file at the end of the file by writing following command:

    AllowUsers user1 user2

    Replace user1 and user2 with your actual usernames.

    Now restart the service by typing:

    sudo service ssh restart

    Finally ssh server is installed on Ubuntu.

    Thanks for reading the blog.

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: