Results 1 to 2 of 2
  1. #1

    PrimalYeti's Avatar
    Member Since
    Jun 21, 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, 05:52 PM
  2. no ssh login possible
    By windfall in forum macOS - Operating System
    Replies: 0
    Last Post: 01-12-2011, 05:31 AM
  3. SSH login always on? is it safe?
    By cad2blender in forum macOS - Operating System
    Replies: 0
    Last Post: 12-25-2010, 03:20 PM
  4. Problems with terminal SSH compiling.
    By monolith in forum macOS - Development and Darwin
    Replies: 7
    Last Post: 01-16-2009, 11:07 AM
  5. SSH Login from a PC
    By Simbad54 in forum macOS - Apps and Games
    Replies: 2
    Last Post: 12-31-2007, 12: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