LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 06-01-2015, 09:15 PM   #1
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
Creating OS X ssh server


Hi all,

I'm having trouble setting up my iMac to be accessed by Linux machines at home and on vacation to be able to be remotely accessed and managed via ssh.

I followed these directions:

http://osxdaily.com/2011/09/30/remot...rver-mac-os-x/

And when I set it up, OS X told me to log in by typing "ssh username@ip.address", except with the actual login values. When I tried this from my home machines, I got:

Code:
ssh_exchange_identification: read: Connection timed out
Any idea on what gives? I suspect it may be that OS X's preferences gave me the internal IP address, not the external.

Thanks!

Last edited by wagscat123; 06-01-2015 at 09:16 PM.
 
Old 06-01-2015, 10:34 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,790

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Well, can you ssh from another machine within the LAN? If you're trying to reach it from the internet, you will need to configure your firewall/router first.

I would also expect to see the port status at the router....
Code:
nmap <router-public-IP-address
 
Old 06-02-2015, 10:08 AM   #3
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860

Original Poster
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
I can check the port status until later, but if it adds anything I'm connecting through a campus network that has thongs like a log in when you first connect a new device and allocates bandwidth to individual users.
 
Old 06-02-2015, 12:23 PM   #4
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860

Original Poster
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
I ran nmap on the host with the IP address, and got
Code:
lynnes-iMac:stereo-pair CSSTinterns$ nmap ipaddress

Starting Nmap 6.47 ( http://nmap.org ) at 2015-06-02 13:15 EDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.13 seconds
lynnes-iMac:stereo-pair CSSTinterns$ nmap -Pn ipaddress

Starting Nmap 6.47 ( http://nmap.org ) at 2015-06-02 13:17 EDT
Nmap scan report for ipaddress
Host is up.
All 1000 scanned ports on ipaddress are filtered

Nmap done: 1 IP address (1 host up) scanned in 201.42 seconds
lynnes-iMac:stereo-pair CSSTinterns$
For privacy reasons I replaced any mentioning of my IP address with "ipaddress"

I also tried sshing in the same university wireless network (and presumable the same LAN), and had the same results. One of my co-workers uses vpm before he sshs into a faculty member's computer. Do you think I want to do something like that?

Last edited by wagscat123; 06-02-2015 at 12:55 PM.
 
Old 06-02-2015, 04:23 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,790

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
If you're trying to connect into a network that you don't administrate, you'll need to get their advice about accessing servers. If your colleague connects via VPN (as I also do in when working remote from my workplace), then you'll probably find that you need to do the same. You should then be able to ping the machine via it's LAN IP address, and check with nmap (or telnet) that is is listening on the configured port (22 by default).
 
Old 06-02-2015, 05:27 PM   #6
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860

Original Poster
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
I can switch it to a public Wi-fi yet and the same issue arises. Should there theoretically be no issue then and I can simple go with setting up ssh in OS X's preferences? I'll still try that anyways though.
 
Old 06-03-2015, 08:18 AM   #7
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860

Original Poster
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
nmap still failed with the same output, telnet failed, and when I ran ping, it gave me no output until I Ctrc+C'ed it. Here was its output from when I pinged from another computer:

Code:
-bash-4.1$ ping ip.address
PING 130.85.254.99 (130.85.254.99) 56(84) bytes of data.
^C
--- ip.address ping statistics ---
499 packets transmitted, 0 received, 100 packet loss, time 498154ms

-bash-4.1$
The Mac could ping itself at least.

Could port forwarding be part of the solution?

Last edited by wagscat123; 06-03-2015 at 10:47 AM.
 
Old 06-03-2015, 04:52 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,790

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Ask your network administrators for help. They should be able to help you access the server remotely.
 
Old 06-04-2015, 11:42 AM   #9
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860

Original Poster
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
I guess I'll do that. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.ssh folder creating automatically Iyyappan Linux - Server 2 07-28-2014 02:47 AM
[SOLVED] Creating the SSH server in home with the dynamic public ip ? splinux Linux - Server 20 06-15-2011 03:00 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 07:56 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration