Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: ssh Access from Macintosh to Ubuntu ? What should one do ?

  1. #1
    Join Date
    Mar 2011
    Location
    France
    Beans
    73
    Distro
    Ubuntu 10.04 Lucid Lynx

    ssh Access from Macintosh to Ubuntu ? What should one do ?

    I have a Dell machine installed with ubuntu 10.04. I use it in my lab. It has wireless connection right now. I need to access this machine from home. At home I have macintosh.


    On my ubuntu machine
    Code:
    ifconfig

    khan@ubuntu:~$ ifconfig
    eth0 Link encap:Ethernet HWaddr 00:21:9b:ee:6b:92
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:16

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:82 errors:0 dropped:0 overruns:0 frame:0
    TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:11439 (11.4 KB) TX bytes:11439 (11.4 KB)

    wlan0 Link encap:Ethernet HWaddr 00:21:5d:c9:9a:34
    inet addr:141.115.36.122 Bcast:141.115.36.255 Mask:255.255.255.0
    inet6 addr: fe80::221:5dff:fec9:9a34/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:86833 errors:0 dropped:0 overruns:0 frame:0
    TX packets:54410 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:114705252 (114.7 MB) TX bytes:7241194 (7.2 MB)
    There is nothing in hosts.allow and hosts.deny
    Code:
    khan@ubuntu:~$ cat /etc/hosts.allow

    # /etc/hosts.allow: list of hosts that are allowed to access the system.
    # See the manual pages hosts_access(5) and hosts_options(5).
    #
    # Example: ALL: LOCAL @some_netgroup
    # ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
    #
    # If you're going to protect the portmapper use the name "portmap" for the
    # daemon name. Remember that you can only use the keyword "ALL" and IP
    # addresses (NOT host or domain names) for the portmapper, as well as for
    # rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
    # for further information.
    #
    Code:
    khan@ubuntu:~$ cat /etc/hosts.deny

    # /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
    # See the manual pages hosts_access(5) and hosts_options(5).
    #
    # Example: ALL: some.host.name, .some.domain
    # ALL EXCEPT in.fingerd: other.host.name, .other.domain
    #
    # If you're going to protect the portmapper use the name "portmap" for the
    # daemon name. Remember that you can only use the keyword "ALL" and IP
    # addresses (NOT host or domain names) for the portmapper, as well as for
    # rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
    # for further information.
    #
    # The PARANOID wildcard matches any host whose name does not match its
    # address.
    #
    # You may wish to enable this to ensure any programs that don't
    # validate looked up hostnames still leave understandable logs. In past
    # versions of Debian this has been the default.
    # ALL: PARANOID
    On macintosh machine at home, I did ping but did not work. I did ssh, did not work.

    Code:
    ping 141.115.36.122

    PING 141.115.36.122 (141.115.36.122): 56 data bytes
    Request timeout for icmp_seq 0
    Request timeout for icmp_seq 1
    Request timeout for icmp_seq 2
    Request timeout for icmp_seq 3
    Request timeout for icmp_seq 4
    Request timeout for icmp_seq 5
    Request timeout for icmp_seq 6
    Request timeout for icmp_seq 7
    ^Z
    When I do as bleow:
    Code:
    ssh khan@141.115.36.122

    I get the following messages after awhile:
    ssh: connect to host 141.115.36.122 port 22: Operation timed out
    All above things, I learned by googling. Even I modified hosts.allow file by going into root permisions on ubuntu machine, as such, ALL:ALL, but did not work. etc.

    Any how, I can access lab servers from home by [ssh username@servername]. But now I want to access my personal ubuntu machine placed at lab.

    What should I need on Macintosh machine or Ubuntu machine.
    Please help me step by step. Its is my first time to connect remotely and i will be much happy to do that.
    Thanks in advance!

    NahkNarmi Ubuntu14.04 LTS Dell LATITUDE | E5400 32 bits | 2.00 GHz 1 GB RAM | 120 HDD


  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    On the lab machine, 141.115.36.122, can you ssh to yourself?

    Code:
    ping -c 5 -w 1 141.115.36.122
    ssh localhost
    ssh 141.115.36.122
    If all of those work, then we can look more at connectivity. Not being able to ping from outside indicates a problem. You can get to other machines in the same lab from outside?

  3. #3
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    Does your Ubuntu server respond to a ping from another machine on your LAN?
    Can you ssh into your Ubuntu server from another machine on your LAN?

    The answers to those questions will tell you if the issue is caused a setting or package on the Ubuntu machine, or if the issue is caused by your network's administrator.

  4. #4
    Join Date
    Mar 2011
    Location
    France
    Beans
    73
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    In response to Mr. Lars Noodén
    Ping on lab machine (ubuntu)
    ping -c 5 -w 1 141.115.36.122
    PING 141.115.36.122 (141.115.36.122) 56(84) bytes of data.
    64 bytes from 141.115.36.122: icmp_seq=1 ttl=64 time=0.055 ms
    64 bytes from 141.115.36.122: icmp_seq=2 ttl=64 time=0.042 ms


    --- 141.115.36.122 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.042/0.048/0.055/0.009 ms
    ssh localhost
    khan@localhost's password:
    Linux khan 2.6.32-58-generic #120-Ubuntu SMP Tue Apr 1 17:56:07 UTC 2014 i686 GNU/Linux
    Ubuntu 10.04.4 LTS


    Welcome to Ubuntu!
    * Documentation: https://help.ubuntu.com/


    Last login: Wed Apr 30 15:10:49 2014 from localhost
    ssh 141.115.36.122
    The authenticity of host '141.115.36.122 (141.115.36.122)' can't be established.
    RSA key fingerprint is af:92:d6:45:58:1c:5e:6f:e1:c6:aa:a8:c8:3e:33:9d.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '141.115.36.122' (RSA) to the list of known hosts.
    khan@141.115.36.122's password:
    Linux khan 2.6.32-58-generic #120-Ubuntu SMP Tue Apr 1 17:56:07 UTC 2014 i686 GNU/Linux
    Ubuntu 10.04.4 LTS


    Welcome to Ubuntu!
    * Documentation: https://help.ubuntu.com/


    Last login: Wed Apr 30 15:14:56 2014 from localhost
    The password entry is of my personal lab machine(ubuntu). It is not password of wireless network of lab.
    NahkNarmi Ubuntu14.04 LTS Dell LATITUDE | E5400 32 bits | 2.00 GHz 1 GB RAM | 120 HDD


  5. #5
    Join Date
    Mar 2011
    Location
    France
    Beans
    73
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    Quote Originally Posted by ian-weisser View Post
    Does your Ubuntu server respond to a ping from another machine on your LAN?
    Can you ssh into your Ubuntu server from another machine on your LAN?

    The answers to those questions will tell you if the issue is caused a setting or package on the Ubuntu machine, or if the issue is caused by your network's administrator.
    If I connect my Macintosh Machine on the same wireless network of lab, ( login n passwd are same to access this network either on macintosh or ubuntu, right now I dont have access to any other machine with different login and passwd )
    Then the following:
    ping 141.115.36.122PING 141.115.36.122 (141.115.36.122): 56 data bytes
    ping: sendto: No route to host
    ping: sendto: Host is down
    Request timeout for icmp_seq 0
    ping: sendto: Host is down
    Request timeout for icmp_seq 1
    ping: sendto: Host is down
    Request timeout for icmp_seq 2
    ping: sendto: Host is down
    Request timeout for icmp_seq 3
    ping: sendto: Host is down
    Request timeout for icmp_seq 4
    ping: sendto: Host is down
    Request timeout for icmp_seq 5
    ping: sendto: Host is down
    Request timeout for icmp_seq 6
    ping: sendto: Host is down
    Request timeout for icmp_seq 7
    .
    .
    .
    If I do ssh on macintosh connect to same wireless network,
    MacBook:~ KHAN$ ssh khan@141.115.36.122ssh: connect to host 141.115.36.122 port 22: Operation timed out
    For your information Please, This lab network offcourse utilise proxy settings. The http proxy, secure http proxy, ftp proxy, sockts host : all with same port number.

    Looking forward for your cooperation. Thanks!
    NahkNarmi Ubuntu14.04 LTS Dell LATITUDE | E5400 32 bits | 2.00 GHz 1 GB RAM | 120 HDD


  6. #6
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    Okay, so your Ubuntu system seems capable of making a connection.
    Can it ping the mac?

    Are you sure that both machines are connected to the same wireless network that you expect? "No route to host" is a specific error meaning that the machine you're looking for cannot be located on the network at all (instead of locatable but rejecting connections). If you have access to the router, do both machines show up?

  7. #7
    Join Date
    Jan 2014
    Location
    Netherlands
    Beans
    188
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    ​u need to open port 22 in firewall of linux, and in the router of your lab


    appologies for doing it, but i did an nmap scan to the ip 141.115.36.122 and no open ports where discovered

  8. #8
    Join Date
    Mar 2011
    Location
    France
    Beans
    73
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    It was not accessible because the machine was not in lab.
    Port 22 of my Ubuntu machine is open.
    Code:
     nmap -A 127.0.0.1
    Starting Nmap 5.00 ( http://nmap.org ) at 2014-05-02 11:16 CESTInteresting ports on localhost.localdomain (127.0.0.1):
    Not shown: 998 closed ports
    PORT STATE SERVICE VERSION
    22/tcp open ssh OpenSSH 5.3p1 Debian 3ubuntu7.1 (protocol 2.0)
    | ssh-hostkey: 1024 01:47:e4:2a:80:a7:4a:71:06:18:11:46:d9:d7:57:5d (DSA)
    |_ 2048 af:92:d6:45:58:1c:5e:6f:e1:c6:aa:a8:c8:3e:33:9d (RSA)
    631/tcp open ipp CUPS 1.4
    Service Info: OS: Linux


    Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
    Nmap done: 1 IP address (1 host up) scanned in 7.30 seconds
    When I ping my machine some other machine placed in my lab that machine has wired connection. Then it works as follows:
    PING 141.115.36.122 (141.115.36.122) 56(84) bytes of data.
    64 bytes from 141.115.36.122: icmp_seq=1 ttl=63 time=0.999 ms
    64 bytes from 141.115.36.122: icmp_seq=2 ttl=63 time=0.716 ms
    64 bytes from 141.115.36.122: icmp_seq=3 ttl=63 time=0.907 ms
    64 bytes from 141.115.36.122: icmp_seq=4 ttl=63 time=0.719 ms
    64 bytes from 141.115.36.122: icmp_seq=5 ttl=63 time=0.686 ms
    64 bytes from 141.115.36.122: icmp_seq=6 ttl=63 time=1.86 ms
    64 bytes from 141.115.36.122: icmp_seq=7 ttl=63 time=0.925 ms
    64 bytes from 141.115.36.122: icmp_seq=8 ttl=63 time=0.616 ms
    64 bytes from 141.115.36.122: icmp_seq=9 ttl=63 time=0.693 ms
    When I ping my Macintosh machine from Ubuntu machine both placed on the same wireless network of the lab.
    then
    ping 141.115.36.63PING 141.115.36.63 (141.115.36.63) 56(84) bytes of data.
    From 141.115.36.122 icmp_seq=1 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=2 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=3 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=4 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=5 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=6 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=7 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=8 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=9 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=10 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=11 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=12 Destination Host Unreachable
    From 141.115.36.122 icmp_seq=13 Destination Host Unreachable
    .
    .
    .
    Please help ! Thanks

    When I ping my Ubuntu machine from a macintosh machine both placed on the same wireless network. Then
    ping 141.115.36.122

    PING 141.115.36.122 (141.115.36.122): 56 data bytes
    Request timeout for icmp_seq 0
    Request timeout for icmp_seq 1
    Request timeout for icmp_seq 2
    Request timeout for icmp_seq 3
    ping: sendto: No route to host
    Request timeout for icmp_seq 4
    ping: sendto: Host is down
    Request timeout for icmp_seq 5
    ping: sendto: Host is down
    Request timeout for icmp_seq 6
    ping: sendto: Host is down
    Request timeout for icmp_seq 7
    ping: sendto: Host is down
    Request timeout for icmp_seq 8
    ping: sendto: Host is down
    Request timeout for icmp_seq 9
    .
    .
    Last edited by xptional; May 2nd, 2014 at 03:51 PM.
    NahkNarmi Ubuntu14.04 LTS Dell LATITUDE | E5400 32 bits | 2.00 GHz 1 GB RAM | 120 HDD


  9. #9
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    Is the firewall on the Mac allowing such connections or pings ?
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |
    [SIGPIC][/SIGPIC]

  10. #10
    Join Date
    Mar 2011
    Location
    France
    Beans
    73
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh Access from Macintosh to Ubuntu ? What should one do ?

    I don't know, how to check firewall on the Mac ? Is it the problem of firewall or else, don't know.
    Please guide me. Thanks you !
    NahkNarmi Ubuntu14.04 LTS Dell LATITUDE | E5400 32 bits | 2.00 GHz 1 GB RAM | 120 HDD


Page 1 of 2 12 LastLast

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
  •