Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2011
    Posts
    125

    Default Connect Linux Shared Server with SSH

    Is it possible to connect Linux Shared Server with SSH?

  2. #2
    Join Date
    Jul 2011
    Posts
    105

    Default Connect Linux Shared Server with SSH

    Here are the steps to connect Linux Shared Server with SSH

    • Open Putty, under Connection click SSH, then Auth.

    • Click Browse under Private key file for authentication, then select the private key you downloaded in the last section, and click Open.

    • Click Session and under port enter: 2222

    • For the Host Name, enter your domain name, or shared IP address,then click the Open button to connect. If you see a PuTTY Security Alert, click Yes.

    • You will see "Login As". Please enter your cPanel username and then hit Enter.

    • Then, enter the password for your key file and hit enter. For security reasons, PuTTY will not show anything when you type your password, this is normal. You will then be logged into your account via SSH.

  3. #3

    Default

    Connecting via SSH to your server
    SSH on your local computer: this walkthrough is for Linux/Unix computers, including Mac OS X. See the note at the end of this article for extended PuTTY instructions (for Windows computers).
    A previous SSH connection made from this computer. If you haven't ever used this computer to log into another server with SSH, please do so now. A simple login will suffice to generate the correct files on your local computer. See the previous links for instructions.

    INSTRUCTIONS

    This step is run on your remote server.
    Grid: Log into your server via SSH with your Server Administrator user and execute the following command:
    Code:
    mkdir ~/.ssh
    DV: Make the initial SSH connection as the root user and change to the home directory for the user you are creating the key for, then create the .ssh directory:

    Code:
    cd /path/to/users/directory && mkdir .ssh
    This step is run on your local computer. Generate a key on your local computer, using strong encryption:

    Code:
    ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -C "Enter an optional comment about your key"
    You should receive a prompt similar to the following. Please use a strong password. If you plan on using your key for automated tasks that don't require interaction, such as rsync, you might want to leave this blank:

    Enter passphrase (empty for no passphrase)
    Once you have entered your password twice, you should see output similar to:

    Your identification has been saved in /Users/username/.ssh/id_rsa.
    Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
    The key fingerprint is:
    60:b5:c1:b7:ee:ab: 31 :d1:70:d8:03: 41 :df:0f:08:eb Enter an optional comment about your key

    Note: Remove spaces at 31 and 41 in the above code.

    The key's randomart image is:
    +--[ RSA 2048]----+
    | .=. |
    | . B o |
    | X B o |
    | o X o o |
    | E S . |
    | o |
    | o . |
    | + |
    | ..o. |
    +-----------------+

    This step is run on your local computer. Make sure your .ssh directory and the files it contains have the correct permissions:
    Code:
    chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
    This step is run on your local computer. Upload your public key to your server. The command below reads the content of the key you just created on your computer, and appends that key to the authorized_keys file on your server. If you don't have an existing authorized_keys file, it creates one. Replace example.com with your domain:

    Code:
    cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat - >> ~/.ssh/authorized_keys'
    This step is run on your remote server. Make sure you're logged in as the user for whom the key was created. Then, ensure your .ssh directory on the server, and the files it contains, have the correct permissions:

    Code:
    chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.ssh/
    And that's it.
    BODHost.com: | Dedicated Server Hosting | Cloud Server Hosting
    Ph. : +1.866-662-0909 | Email : [email protected]

  4. #4

    Default

    Please refer to the below tutorial -
    https://www.youtube.com/watch?v=1LwNQ35w2MA

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •