Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

  1. #11
    Join Date
    Jul 2008
    Beans
    221
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    any suggestions?

  2. #12
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    You may have better luck putting the server on the home wifi network and trying with the client connected via your 3G service - not forgetting to set up the appropriate port forwarding on your home router of course

  3. #13
    Join Date
    Jul 2008
    Beans
    221
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    is there a way to do this without port forwarding?
    and what if server is moving and sending me actual IP - can't I connect to it, assuming SSH is configured and I have password?

  4. #14
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    Quote Originally Posted by khurtsiya View Post
    any suggestions?
    Try pinging the server to see if there is any basic network connectivity.

  5. #15
    Join Date
    Dec 2008
    Location
    USA
    Beans
    528
    Distro
    Ubuntu 18.10 Cosmic Cuttlefish

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    Can you give us the output of ifconfig
    I don' really like coffee. I guess I'll give my Ubuntu beans to my wife.

    Luke

  6. #16
    Join Date
    Jul 2013
    Beans
    14

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    There are two things you can try:
    1- SSH server and client are running fine
    2- The connectivity between your home laptop and remote laptop (using 3G)

    I suggest that you should connect both laptops into a private network (your home network, e.g 192.168.0.x)
    Suppose your remote laptop's ip address in 192.168.0.10
    Code:
    ssh <remote-user>@192.168.0.10
    By default, ssh uses port 22, if it is configured to use another port number, you can use '-p <port-number>'
    At this stage, you can confirm that ssh is running fine

    Then you can try to use external ip address

    - Make sure your external ip address (3G) is correct (https://www.google.com.au/#q=what+is+my+ip+address). It should be pingable.
    - You need to configure your home router to forward ssh packets (port 22) from external to your home laptop. Configuring port forwarding is an easier approach here.

    Hope this could help

  7. #17
    Join Date
    Jul 2008
    Beans
    221
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    Hi! Finally connection established, thanks to this short and clear article: http://linuxwave.blogspot.com/2008/0...se-tunnel.html

    But! Now I have this error:

    ~$ ssh -vvvv k@91.111.136.30 -p 7777
    k@91.111.136.30's password:
    debug3: packet_send2: adding 64 (len 52 padlen 12 extra_pad 64)
    debug2: we sent a password packet, wait for reply
    debug1: Authentications that can continue: publickey,password
    Permission denied, please try again.
    Looked many other articles with this problem and fotums, but none of the solutions helped. Any suggestions much appreciated.

  8. #18
    Join Date
    Jul 2008
    Beans
    221
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Can't connect from one Ubuntu notebook to another Ubuntu notebook via SSH

    Here is the instruction from that article:

    1. Create a tunnel from middle to target and leave it open when you are still at the office. You cn also ask your colleague at the office to do this. The below command will open port 12000 on middle for listening and forward all request on port 12000 on middle to port 22 of target
    Code:
    user@target $ ssh -R 12000:localhost:22 middleuser@middle
    2. Now you can access to port 12000 on middle from current and you will be forwarded to port 22 on target
    Code:
    user@current $ ssh targetuser@middle -p 12000
    3. If somehow you cannot access, access middle first, then connect to port 12000 of localhost
    Code:
    user@current $ ssh middleuser@middle
    user@middle $ ssh targetuser@localhost -p 12000
    You are now in the target server

Page 2 of 2 FirstFirst 12

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
  •