LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2008, 06:59 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
run command on remote server


I have a ftp script to run file transfer like below .

ftp IP <<EOF
put ${1}
bye
EOF

it work fine , if I would like to run some command on remote site , eg . move file from directory1 to directory2 , can advise what can i do ? thx
 
Old 09-09-2008, 09:10 AM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
the 'ssh' command is a secure way of invoking commands on a remote computer. There are a few ways to use it:
This will log you into the remote computer under a command shell so that you may run as many commands as you want on the remote machine (manually)
Code:
ssh username@hostname.tld
This will run a single command on the remote computer and then return to the shell that called it
Code:
ssh username@hostname.tld <command>
In both cases, you must enter a password. There are ways of using the command without a password (google "ssh no password" and you should find some how to's)
 
  


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
SSH: How to run console/command in remote server's memory? Vince-0 Linux - Server 3 03-09-2008 11:36 AM
Cannot run shell script on the remote server haresh_dba Linux - General 2 04-14-2007 10:26 AM
X Error trying to run UNIX app on remote server R00ts Linux - Software 1 09-12-2004 01:58 PM
Want to run KDE/Gnome with remote X Server Fruitbat Linux - Newbie 5 11-30-2003 08:40 AM


All times are GMT -5. The time now is 03:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration