Skip to content

2020Media

Home Contact Us News Webmail
 

Newsflash

2020Media is offering full support for Joomla, Magento, SugarCRM on hosting packages
 
You are here: Home arrow Tools arrow Reference arrow Using SSH on a Mac
Using SSH on a Mac PDF 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

Domain Search

Preferred Extensions -
.com .co.uk
.net .org
.me .eu
Nominet Members
Nominet members since 1999
CentralNic Accredited Registrar
Accredited since 2001
Imperial Registrations Platinum Partner
ICANN Accredited
RIPE member
RIPE member since 2002
 
[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size