Results 1 to 3 of 3

Thread: Cannot SSH with Ubuntu, but can with Windows putty?

  1. #1
    Join Date
    Apr 2007
    Beans
    278

    Cannot SSH with Ubuntu, but can with Windows putty?

    Hey Folks:

    I have a Ubuntu server running a website and some other stuff, and I regularly log into it remotely using the Window's program "Putty". I have the server setup to use an abnormal SSH port (not 22) for the "security by obscurity" idea. This login method has been working swimmingly.

    Now, enter Ubuntu desktop.

    I installed Ubuntu desktop on one of my spare machines. I popped open a terminal window and tried to SSH into my server:

    Code:
    ssh garfonzo@123.456.789.213:1234
    (obviously fake credentials for this post).

    the output I get is:

    Code:
    ssh: Could not resolve hostname 123.456.789.213:1234: Name or service not known
    I also tried:
    Code:
    ssh -l garfonzo 123.456.789.213:1234
    This produced the same result.

    I can ping my server from the terminal window, so I know it can see it (the Ubuntu desktop and the Ubuntu server are not on the same LAN)

    Confused, I opened the "Connect to Server" application from within Ubuntu desktop. I entered the IP address, port, user name and selected "SSH". To my surprise, it connected no problem.

    So, why can't I connect through the terminal using SSH and, how do I get it to work?
    Last edited by garfonzo; March 4th, 2011 at 05:57 PM.

  2. #2
    Join Date
    Jan 2010
    Location
    Portugal
    Beans
    160
    Distro
    Ubuntu Development Release

    Re: Cannot SSH with Ubuntu, but can with Windows putty?

    try

    ssh garfonzo@123.456.789.213 -p1234
    Javali
    Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Open Source Systems / SugarCRM / Alfresco / Drupal / Openbravo
    http://www.javali.pt info at javali.pt

  3. #3
    Join Date
    Apr 2007
    Beans
    278

    Re: Cannot SSH with Ubuntu, but can with Windows putty?

    Quote Originally Posted by HugoSerrano View Post
    try

    ssh garfonzo@123.456.789.213 -p1234
    And I'm in!

    Thanks!

Tags for this Thread

Bookmarks

Posting Permissions

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