Thread: SSH Login w/ Terminal
07-27-2009, 06:15 PM #1
SSH Login w/ Terminal
- Member Since
- Jun 22, 2006
- MacBook Pro Retina 15" 2.6GHz Intel Core i7, 8GB DDR3L RAM, 512GB SSD, NVIDIA GeForce GT 650M
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!
07-28-2009, 12:13 AM #2
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?mike
This machine kills fascists
Got # ? phear the command line!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Basil Fawlty in forum Switcher HangoutReplies: 7Last Post: 06-02-2011, 06:52 PM
By windfall in forum OS X - Operating SystemReplies: 0Last Post: 01-12-2011, 06:31 AM
By cad2blender in forum OS X - Operating SystemReplies: 0Last Post: 12-25-2010, 04:20 PM
By monolith in forum OS X - Development and DarwinReplies: 7Last Post: 01-16-2009, 12:07 PM
By Simbad54 in forum OS X - Apps and GamesReplies: 2Last Post: 12-31-2007, 01:59 AM