Results 1 to 2 of 2
  1. #1

    PrimalYeti's Avatar
    Member Since
    Jun 22, 2006
    MacBook Pro Retina 15" 2.6GHz Intel Core i7, 8GB DDR3L RAM, 512GB SSD, NVIDIA GeForce GT 650M
    SSH Login w/ Terminal
    Hey everyone;

    Twice a day I need to login to an apache server using ssh and run a "restart_apache" command.

    What I was hoping to find is a script that can log me in (username and password automated), run the command then log me out.

    Can anyone help me out please.
    I play WoW on a Mac!

  2. #2

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Tucson, AZ
    Way... way too many specs to list.
    Use ssh via rsa key-gen and then you can do something like..

    ssh user@host 'command'

    btw, why can't you just add restart_apache to crontab on the local machine?
    This machine kills fascists
    Got # ? phear the command line!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SSH with Terminal
    By Basil Fawlty in forum Switcher Hangout
    Replies: 7
    Last Post: 06-02-2011, 06:52 PM
  2. no ssh login possible
    By windfall in forum OS X - Operating System
    Replies: 0
    Last Post: 01-12-2011, 06:31 AM
  3. SSH login always on? is it safe?
    By cad2blender in forum OS X - Operating System
    Replies: 0
    Last Post: 12-25-2010, 04:20 PM
  4. Problems with terminal SSH compiling.
    By monolith in forum OS X - Development and Darwin
    Replies: 7
    Last Post: 01-16-2009, 12:07 PM
  5. SSH Login from a PC
    By Simbad54 in forum OS X - Apps and Games
    Replies: 2
    Last Post: 12-31-2007, 01:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts