Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 7 of 7
  1. #1
    smileymike is offline Registered User
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to use OSX terminal SSH?

    Hello,

    i am newbie and a migrant to OSX from windows. Previously i used putty.exe. It is straight forward process, all i have to do is type 192.168.72.137 port 22 on putty.exe to freebsd ssh server.

    How can i do it with OSX terminal? I have used angry IP scanner on osx and that ip isnt there (possible osx firewall).

    Also all my other computers failed to get ping response from osx.

    Thank you

  2. #2
    ElDiabloConCaca's Avatar
    ElDiabloConCaca is offline U.S.D.A. Prime
    Join Date
    Aug 2001
    Location
    San Antonio, Texas
    Posts
    14,490
    Thanks
    10
    Thanked 648 Times in 610 Posts
    First of all, read this:

    ***This Forum is for Tutorials and Guides only, not questions***

    To ssh, simply open the terminal application, then type "ssh [servername]", without quotes, where [servername] is the name of your server.

    If you're looking to ssh to your Mac OS X box, then you need to enable "Remote Login" in the "Sharing" pane of the System Preferences.
    2009 Mac mini 2.0GHz • 2010 MacBook Air 11" • 2010 MacBook Pro 13" • LED 24" Cinema Display
    PowerMac G4 MDD dual 1.25GHz • PowerMac G4 Yikes! • iPad 2 32GB • 2 x iPhone 4 16GB • iPod Touch 8GB • iPod nano 1GB • iPod shuffle 1GB • AirPort Extreme dual-band • AppleTV
    http://www.jeffhoppe.com

  3. #3
    nixgeek's Avatar
    nixgeek is offline Mac of the SubGenius! :-)
    Join Date
    Jan 2004
    Location
    Miami, FL
    Posts
    8,593
    Thanks
    32
    Thanked 157 Times in 141 Posts
    You can also check out the manual for the SSH command by typing "man ssh" in the command prompt. That will show you other things that you can do with SSH in Terminal, such as creating an SSH tunnel when connecting to an SSH server to encrypt your sessions, kind of like a "poor man's proxy." Or even to do X11 forwarding so that you can execute X11 applications remotely from your SSH server to your Macintosh. Or even generate encryption keys in order to have an extremely secure SSH session without even needing a password.

    Have fun with SSH!
    Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.5.8/Ubuntu 10.04
    Asus Eee PC 901 (1.6 GHz Atom N270) - Fedora 13
    Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
    "JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13.1

  4. #4
    Giaguara's Avatar
    Giaguara is offline Chmod 760
    Join Date
    Nov 2002
    Location
    ~
    Posts
    9,534
    Thanks
    18
    Thanked 191 Times in 186 Posts
    Moved.
    Man is your best friend. man ssh. apropos ssh...
    Mac Mini Server | MacBook Pro | iPhone | Other Macs + a bunch of iPods, Newtons and other toys
    Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
    ~ Samuel Clemens | G's corner | Photos | @ Plus+ and Game Center

  5. #5
    smileymike is offline Registered User
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you guys for reply.

    But you lost me

    i used man ssh, and i have trouble in understanding everything its says.

    i like to learn new things by examples.

    Please keep things simple.

    i tried "ssh 192.168.72.137" which worked in windows XP ->putty.exe but not on osx terminal.

    192.168.72.137 is an address of vmware freebsd 7.1, according to it, the domain name is "freebsd71.domainlocal"(i think it is in hosts file which readable by freebsd OS only)

    is correct command line: "ssh root@192.168.72.137"?
    or should be "ssh root@freebsd71.domainlocal"?

    ssh server, sshd is switched on, running, and tested with putty.exe

    But there is another thing i think it causing problem.. osx firewall. i have been ping from my windows to this mac osx and no response. "ping 192.168.0.52" which 192.168.0.52 is an address of osx.

    i have "sudo ipfw list" and it shows:
    33300 deny icmp from any to me in icmptypes 8
    65535 allow ip from any to any

    Is those first column is port numbers?

    Thank you

    Mike

  6. #6
    smileymike is offline Registered User
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ssh [192.168.73.137]?

    I ve type that, and nothing happened.

    M

  7. #7
    ElDiabloConCaca's Avatar
    ElDiabloConCaca is offline U.S.D.A. Prime
    Join Date
    Aug 2001
    Location
    San Antonio, Texas
    Posts
    14,490
    Thanks
    10
    Thanked 648 Times in 610 Posts
    No, you would type:
    Code:
    ssh 192.168.73.137
    ...type "ssh [servername]", without quotes, where [servername] is the name of your server...
    ...note I said replace "[servername]" with the server name, not "servername" with the server name.
    2009 Mac mini 2.0GHz • 2010 MacBook Air 11" • 2010 MacBook Pro 13" • LED 24" Cinema Display
    PowerMac G4 MDD dual 1.25GHz • PowerMac G4 Yikes! • iPad 2 32GB • 2 x iPhone 4 16GB • iPod Touch 8GB • iPod nano 1GB • iPod shuffle 1GB • AirPort Extreme dual-band • AppleTV
    http://www.jeffhoppe.com

 

 

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
  •