SSH Exiting Upon Connection to Remote Server

Discussion in 'Command Line' started by tuxms, Oct 30, 2013.

  1. tuxms

    tuxms New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Via linux command line, I'm trying to connect (actually stay connected) to a remote server with this command:


    ssh -l <username> <remote server IP>

    It connects, but right away it closes the connection. "Connection to <remote server IP> closed."

    <username> is a user account on both the local and the remote server. <username> is not root.

    I've logged in remotely to this server with Putty on a Windows computer. So, ssh does work to login to this remote host through Putty and with the same <username>.

    Does anyone know the issue here, I've searched around, but couldn't find a solution that works.

    Thanks.
  2. tuxms

    tuxms New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Nevermind, I figured it out. The username I was using was changed.

    The above issue has been solved.

Share This Page