Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-23-2004, 09:16 AM   #1
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Running ssh from crontab

I want to establish and ssh connecto to my home machine from a crontab entry. I use it for port forwarding for vnc & mail.
If I type the following at a commandline:
ssh -p 443 -l username -L 112: -L 114: -L  -g dest_machine
I am prompted to enter my password.

How do I automate the entry of the password if I run the above command from crontab?
Old 01-23-2004, 09:24 AM   #2
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
you can try using public key authentication.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to include x server when running crontab buffalokml Linux - General 2 11-08-2005 11:58 AM
crontab jobs aren't running mdm_linux Linux - General 4 05-30-2005 01:27 PM
error running script on crontab haora Linux - Newbie 3 03-11-2005 05:02 PM
suspend running processes with crontab merlin23 Linux - Newbie 1 12-07-2004 04:09 AM
Old Crontab still Running vwaldoguy Linux - Software 3 08-05-2003 03:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration