상세 컨텐츠

본문 제목

Ssh Tool For Mac Os X

카테고리 없음

by naphtpacaver1986 2021. 2. 27. 06:01

본문



Connect to a server by using SSH on Linux or Mac OS X. Last updated on: 2018-11-13; Authored by: Rackspace Support; This article provides steps for connecting to a cloud server from a computer running Linux® or MacOS® X by using Secure Shell (SSH). The good news is that Mac OS X (both the server and desktop varieties) include built-in File Transfer Protocol (FTP), Secure Shell (SSH), and Virtual Network Computing (VNC) servers. Thus, we have immediate, “out of the box” remote connectivity to our Mac boxes. Actually, most of the functions that PuTTY is adding to Windows are already built-in to Mac OS X (or macOS nowadays) since it’s a UNIX-based Operating System. These commands, like SSH, SCP, etc. Are basic UNIX commands that are unavailable on Windows, hence the need of.

SSH (or Secure Shell) is a great service to enable on your Mac at home or work. This useful tool not only enables the ability to remotely access the command line interface of your Mac, but also to remotely access your files through a secure FTP (SFTP) connection, which gives you the ability to transfer files at will. Read on to find out how to transfer files between your own computers over a secure network connection using any modern FTP program.

What You’ll Need:

>> Mac
>> Router with Port Mapping feature (we’re using an AirPort Extreme)
>> SSH or Terminal app to access command line (We’re using the built-in Terminal app)
>> SFTP/FTP client (We’re using Transmit from Panic)

1. Get a Static IP Address on your Mac

The first step to setting up these web services on your Mac is specifying a static IP address on the Mac you’ll be connecting to. Because we’ve covered this step multiple times, we’ll point you to an article we wrote earlier that clearly outlines the process of setting up a static IP address. Follow the steps in the past article, then come back here to finish setting up SSH on your Mac.

2. Enable SSH on your Mac

Os X Ssh Client

Next, we’ll enable SSH on the Mac you’re going to be accessing remotely. Navigate to System Preferences > Sharing.

3. Configure Port Mappings

Port mapping is another topic that we covered in the past. Follow the directions in the past article, while making the following changes when it comes to specifying the ports.

Ssh Tool For Mac Os X

4. Access your Mac remotely via Command line

Now that you’ve enabled SSH and configured port mapping on your router, you will be able to access your Mac’s command line and files remotely.

5. Access your Mac’s files remotely via SSH

With an SFTP client (like Panic’s Transmit, or FileZilla), you can quickly access your files remotely thanks to SSH on your home or work Mac. We’re going to show you how to do the following steps using Transmit.

After you click connect, you will be browse, download, and upload files to your Mac remotely.
Follow this article’s author, Cory Bohon on Twitter.

Ssh Application For Mac Os X

Mac
Active3 years ago

Is there a good PuTTY (free telnet / ssh client) equivalent for OS X?

I know that I can just use terminal and an ssh command, but I want some sort of application that will store connection info, passwords, logs, etc for me, much like PuTTY.

Does this exist?

Dan J
4,22113 gold badges41 silver badges70 bronze badges
Steve RobbinsSteve Robbins
7483 gold badges9 silver badges16 bronze badges

10 Answers

PuTTY is a great Windows frontend, not to mention the need for an SSH client in the first place. On Linux, OS X, and most other UNIX-y based environments, SSH is generally purely command line, but still amazingly powerful.

The SSH client allows you to store an amazing amount of properties based on a given hostname, even global defaults, in the 'ssh_config' client file. This file doesn't exist by default (per the comments on the question), but should be written at ~/.ssh/config.

That path equates to:
~, your home directory, it expands on my system to /Users/jason.
.ssh, the leading dot makes it hidden. If you're in Terminal and in your home directory, you can simply run cd .ssh and enter it.
config is the file name, it is a plain text file with configuration parameters.

I use this file to control tunnels I always use, the private key needed for the connection, the username (if it differs from my local username), etc.

See the manpage, either via man ssh_config on your own machine which will contain the most appropriate version, or you can view it online from OpenBSD's Site.

Some example contents from my ssh config file are:

Whitespace is purely personal preference, it is not required except to separate Keys from Values.

The first three lines are global properties, they affect every SSH connection. The second section is a host-specific configuration.

The Host line specifies the host tag you will use when invoking ssh. Ex. ssh serve. When running that, it loads all the properties listed until the next Host line.

Since serve is not necessarily a DNS name, I specify the Hostname that it should actually connect to (no, not actually mine). User is self explanatory and there just to be explicit, and the IdentityFile is the path to the Private Key file it uses to connect.

Xshell for Mac System Tools › Network Xshell by NetSarang Computer, Inc. Is a famous pack of secure terminal emulators with SSH, TELNET, RLOGIN, SFTP and Serial support. Xshell tool for mac.

Lastly, LocalForward sets up a port forwarding rule that I send through the SSH tunnel.

The various syntaxes are all documented on the man page.

There is no mechanism for defining a plain text password. Password entry is ALWAYS interactive when setting up the SSH connection. If you want to log in automatically, set up Private Key Authentication. Storing plain text passwords is stupid, always.

I use this to great effect. And the best part? All your SSH configurations are incredibly portable, it's just one file that you have to backup/retain, and move between system to system! Not so portable to Windows, but who really likes dealing with the registry anyway?

Jason SalazJason Salaz
17.1k16 gold badges83 silver badges136 bronze badges

Why not using MacPorts (https://www.macports.org/)? They have ported putty. You'll need to install MacPorts first, but once you've done that you can run:

Paintbrush app for mac selection tool. Paint for Mac Pro enables your works to be showcased just as impressive as what you can create on a physical canvas.

and you'll have putty available on your Mac.

Ian C.
36.4k25 gold badges135 silver badges213 bronze badges
PitoneuxPitoneux

I have no experiences with this App: ZOC - I only did a quick Google on 'OS X telnet GUI' and got a link to this product as the first hit - but it seems to do the same as PuTTY.

There is a 30 days trial available.

ZOC is a professional SSH/telnet client and terminal emulator. With its impressive list of emulations it lets you easily connect to hosts and mainframes, using communication methods like secure shell, telnet, serial cable or modem/isdn.

Its sleek user interface has many ways of making your life easier. In its own way, ZOC is the Swiss Army Knife of terminal emulators: versatile, robust, proven.

Key Benefits:

  • Tabbed sessions with thumbnails
  • Customizable to meet your preferences and needs
  • Scripting language with over 200 commands
  • Compatible with Windows 7 and OS X Mountain Lion
  • Administrator friendly (deployment, configuration)
  • Now $79.99 with attractive bulk discounts

Key Features:

  • Emulations: VT220, xterm, Wyse, QNX, TN3270, TN5250, ..
  • Communication: SSH, Telnet, Modem, Serial Cable, ..
  • File Transfer: SCP, Zmodem, Xmodem, Ymodem, Kermit, ..
Rene LarsenRene Larsen

Jason's answer is definitely the way to go, but I'd like to point out a feature of Terminal that may be useful.

Within Terminal, you can make a direct connection to a remote machine similar to the way PuTTY does, without first opening a terminal window on the local machine. Simply select Shell->New Remote Connection.. (cmd-shift-K). In the window that pops up, you can add any SSH server to the right-hand column, including aliases defined in the ~/.ssh/config file.

Using Jason's example, you would select 'Secure Shell' as the service on the left, and then add 'serve' to the list of servers on the right.

In the future, you can open the dialog box (much like the main PuTTY window) and double-click the entry for the server you want to connect to. The only difference between this and PuTTY is that you put custom configuration settings in the ~/.ssh/config file, which I see as a huge advantage.

Community
ithos67ithos67

You can install PuTTy on OS X with Homebrew:

And then run it from terminal as putty.

Best jpeg repair software. If you don't have Homebrew, you can install it from Terminal:

ShmidtShmidt

You might want to consider:

Spackle (free, SourceForge link)

This is a Java-based version of PuTTY, available for Mac and Linux.

Ethan Lee
3,5392 gold badges23 silver badges45 bronze badges
user37824user37824

Any terminal program could work with this answer, but I recommend iTerm2.

Mac os ssh server

To store connection info and login with a single short command (no password typing required), you could use a key-login combined with an 'alias'.

Once you have an ssh-key on your server and your Mac, you could login with a command such as:

Using an alias within ~/.bash_profile you could shorten the command with an alias such as:

Then in iTerm2 you only need to execute a command:

to log into the server at 10.0.0.1 using ssh key login.

To store your session log (commands you've run) iTerm2 does this automatically, but you can adjust the amount of session logs you'd like to keep within Preferences -> Default profile -> Terminal -> Scrollback buffer. Tick the box for Unlimited scrollback if you prefer.

You can also store your logs indefinitely, between sessions by saving them to files. Preferences -> Default profile -> Miscellaneous -> Automatically log session input to files in [your chosen file on drive]. Horizon modding tool for mac download.

BakerBaker

I have ported Putty to Mac as a native application bundle, so no need for macports or terminals if your not a technical user.

More information with screen-shots is here : http://www.wine-reviews.net/2016/08/putty-for-mac-os-x-now-available.html

Cheers,

twicklinetwickline

vSSH is a PuTTY-based OS X app.

  • Can almost everything that PuTTY can
  • Multi-tab multi-window interface
  • Macros support (you shell scripts as menu items for quick access)
  • iCloud synchronization (connections, macros and keys) with vSSH and SSH control apps for iOS

Available on the Mac AppStore.

whoamiwhoami

Yes. There is new kid in town:

We have been in business since 1997, but our knowledge and experience spans over 33 years of reselling repossessed equipment. Repossessed mac tool for sale. Our site lists used business equipment for sale that is either repossessed, end of lease or general sale.

oktawianoktawian

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged software-recommendationssh .