Ssh Manager For Mac Os



The Terminal app is the default CLI that comes bundled with the Mac, and is a. Launch the Terminal application, Terminal is found in /Applications/Utilities/ directory but. Mounting a remote folder on OS X over SSH (Yosemite) updated April 6, 2015 Helio Tejedor. This is an update of my previous post that you can read here. The current project I am working on needs to access to a folder on a remote server. For use OSXFUSE on a Mac, we need to write a single line in the file /etc/autohome, but.

Using the built-in SSH client in Mac OS X. Mac OS X includes a command-line SSH client as part of the operating system. To use it, goto Finder, and selext Go - Utilities from the top menu. Then look for Terminal. Terminal can be used to get a local terminal window, and also supports SSH connections to remote servers. Running SSH from the terminal command line.

This is an update of my previous post that you can read here.

The current project I am working on needs to access to a folder on a remote server. It seems like a simple task, but there is one issue: I am a Mac user.

Mounting a server folder is very useful if you have a lot of data to share with your colleagues. It is insane to copy it to your hard drive every time that it changes or manage large amounts of data with version control since it will slow down the repository.

The best solution we found in the lab is using SSH and mounting folders using sshfs. It works really well in Linux and we don't want to use a different system for other operating systems.

For this project I need a new folder inside my /home folder to use as a mount point for the remote file system. This point is not a negotiable due to the project requirements.

When I run mkdir on my mac to create the /home/projects folder, the command runs but doesn’t create a folder. I ran the mount command and found that the /home folder on Mavericks is an auto mounted folder (see the automount man page).

My first thought was: 'well, I could deactivate the automount”. However, radical changes like this are ill-advised. In the next sections I will explain how to install SSHFS for Mac and two different ways to mount a remote ssh folder: deactivating the automount and using it.

The easy way to install SSHFS is navigate to http://osxfuse.github.io and download two files:

  • OSXFUSE 2.7.3
  • SSHFS 2.5.0

Also, you can use homebrew, but, in this moment, the OSXFUSE version is still the 2.7.3 and you can have problems using the automount.

To deactivate the automount, I only need to edit the file /etc/auto_master and comment the line starting with /home auto_home.... After that, I ran sudo automount -vc to tell the daemon that the configuration file was changed. I unmount the /home folder running 'umount /home' (be careful, you must not be in this folder while running this command). At this point, I can create a new folder, change the permissions for the new folder created, and mount the remote filesystem. The steps were:

Note: type yoursecretpassword

For use OSXFUSE on a Mac, we need to write a single line in the file /etc/auto_home, but, we need to prepare a few other items.

The automount system runs as a daemon without user interaction. This means that we need to create a shared key, which the daemon can use to connect to the server.

To create a shared key, run:

Note: the passphrase can be empty

Next we must copy the key to the server. To do that, we need to install the ssh-copy-id script:

Copy the key using the previously installed script:

Note: It will ask for the password

Then test if it is ok trying to connect to the server:

Note: It won't ask for the password!!!

At this point, we can manually mount sshfs like in the previous section, but using the shared key:

However, if we want to automatically mount the remote folder, we still have work to do.

For use OSX fuse in the automount tools, we need to set the next kernel variable to 1:

Mac Os X Ssh

It will be nice to set this variable in the /etc/sysctl.conf file, but the problem is that we can only set up this variable once the kernel module is loaded. Apple encourages programmers to use launchd, so, I started using it.

Mac

The solution is really simple, we only need to create these files into /Library/Application Support/AmaralAutoMount folder:

org.amaral-lab.automount.plist.

org.amaral-lab.automount.sh

The first file define how to run the second one that is a sh script.

Now, the next step is configure launchd to use this file. To do that, I suggest to create a soft link to the “plist” file:

To run this script we can restart the computer (easy way) or run this command:

Finally, we have all the prerequisites to write this line at the end of /etc/auto_home:

Ssh Connection Manager Mac Os

Now, run this command to tell the daemon that the configuration files are changed so we can use the folder:

Ssh Manager For Mac Os 10.13

I hope these lines will be useful for you!