Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-02-2006, 06:12 AM   #1
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
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

The explanations are pretty good.



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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:51 AM.

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