Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-09-2008, 06:59 AM   #1
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}

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
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)
ssh username@hostname.tld
This will run a single command on the remote computer and then return to the shell that called it
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)


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 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