LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 02-02-2006, 06:12 AM   #1
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Rep: Reputation: 15
Simple shell script to open up terminal and ssh to another machine


I am looking to make a script that setups my desktop, which includes opening up a bunch of terminals, and ssh'ing from those terminals to another box, as well as opening up a webpage with firefox.

I know how to open up a terminal, but I'm not sure how to send a command to it so that it will ssh to a box (which requires a password) automatically - and then actually run a particular script.

So basically what I do now, is open up the terminal, ssh to a box , and then run the script "doSomething" How can I get all that in the shell script. Thanks.
 
Old 02-02-2006, 06:25 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hi there

First of all, you must make your ssh connexions using SHA or DSA keys.
You can have a read of http://www.linuxquestions.org/linux/...ation_with_ssh

The explanations are pretty good.

Cheers
 
  


Reply


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 do I open a text editor in a shell terminal? alex1986 Linux - Newbie 9 11-30-2005 04:52 PM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 08:39 PM
ssh -X to an actual open terminal lobo78 Linux - Networking 1 03-11-2004 01:55 PM
Open Linux Terminal from remote Windows machine m1ke Linux - Networking 5 11-12-2001 02:34 AM
Simple C Shell script is not so simple elconde Programming 2 09-17-2001 12:53 AM


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

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