Skip to content

2020Servers

Home Contact Us Webmail
 

Newsflash

Free Windows Server 2008 on Virtual and Dedicated server plans
 
You are here: Home arrow Tools arrow Reference arrow Using SSH on a Mac
Using SSH on a Mac Print E-mail
a Mac terminal

SSH on Macintosh computers

A commercial GUI implementation of ssh clients for the Macintosh is available from Databeast.

Using the terminal on OSX

To open Terminal, navigate to your Applications folder, open Utilities, and double click on Terminal.

Create your public/private key as follows:

ssh-keygen -t rsa1 -f user-name -P some passphrase

Info on the flags:
     -t      the type of key to create
     -f      file name (tomcat3 for example)

This writes your public and private key files into your ~/.ssh folder by default.
Email the public key file (it's a plain text file) to 2020Media. You will be notified when it is installed and ready.
When you are ready to login, from the prompt type:

ssh -l tomcat-3 -v -1 -i ~/.ssh/your-private-key your-server-hostname

     -l      user-name
     -v      verbose (optional)
     -1      forces it to use version one.
     -i      the location of the private key

A pop up appears asking for your password (enter your passphrase created above) and you have now logged in.

Useful commands

Here are a few useful commands you can use, if you have appropriate permissions:

sh ./startup.sh      Start Tomcat
sh ./shutdown.sh     Stop Tomcat
tail -f logs/catalina.out   View live Catalina log
rm -R -f work/Standalone/_  Remove worker files
or rm -R -f work/Standalone/
ps auxwww|grep X     Check what tomcat processes are running (where X is your username)
history              View command history
exit                 Logout

If you'd like us to add any more commands, please contact us.

For more help on using the terminal, we suggest MacMapper

 
< Prev   Next >
Advertisement

From the Blog

2020Media.com Blog
  • CiviCRM Hosting
    2020Media specializes in CiviCRM hosting on Linux servers with a...
  • Wordpress Plugins
    Free content management system Wordpress can be extended very quickly...
[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size