Jump to content



Photo

Disable SSH Preference via Terminal

osx

  • Please log in to reply
4 replies to this topic

#1 CPressland

CPressland

    www.absolute.com

  • Tech Issues Solved: 3
  • Joined: 16-September 06
  • Location: England
  • OS: OS X Mavericks

Posted 14 January 2013 - 10:54

Hi All,

How would one disable SSH via the Terminal in OS X? Specifically I'm looking how to permanently disable this setting via a script:

Screen Shot 2013-01-14 at 10.53.15.png

Thanks

Chris


#2 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 90
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 14 January 2013 - 15:23

I don't use os x all that much, but its lots is the same as any linux distro. You could always stop the service via the service command, its controlled with sbin/service is in not so ssh stop should do it.

As to how to make it not start again on reboot - hmm

os x uses system/library then like coreservices, services, etc. for its startup stuff?? Have never had desire to look that deep into the os before. Not really a fan ;)

so you can for sure stop it with /sbin/service or it seems the more uptodate launchctl -- but its going to just restart on reboot I would think. Just tested

stopssh.jpg

#3 tim_s

tim_s

    Default

  • Joined: 07-January 13
  • OS: OSX (Macbook Pro i7), Windows 7 (Gaming), Gentoo
  • Phone: Samsung Galaxy SIII, iPhone 4s

Posted 14 January 2013 - 19:42

Hi,

I am not near my Mac right now but I believe the SSH is combined within "Remote Login" but you can stop the service or close port 22.

#4 Richard C.

Richard C.

    Neowinian Senior

  • Joined: 15-April 05
  • Location: Around
  • OS: Windows 8.1 Pro & Mac OSX
  • Phone: iPhone 5

Posted 17 January 2013 - 08:12

I seem to have a few unusual connections in netstat considering my configuration, any advice?

Screen Shot 2013-01-17 at 8.12.04 AM.png

Screen Shot 2013-01-17 at 8.12.21 AM.png

#5 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 90
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 17 January 2013 - 13:42

and how is that related to remote login? Or odd? or unusual in anyway?

That is your box on 10.0.0.8 connected to Apple network

NetRange: 17.0.0.0 - 17.255.255.255
CIDR: 17.0.0.0/8
NetName: APPLE-WWNET
OrgName: Apple Inc.

Looks like a push notification IP to me

dig -x 17.172.233.118 +short
st11p01st-hpaj262312-bz.push.apple.com.

And for verification of that assumption your connected on port 5223 -- which is a well known port used by apple products

https://support.apple.com/kb/TS1629
5223 TCP Apple Push Notification Service - - iCloud DAV Services (Contacts, Calendars, and Bookmarks), APNS, FaceTime, Game Center, Photo Stream, Back to My Mac

Nothing to do with the thread at hand though ;)