Remote server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Remote server
# 1  
Old 01-01-2009
Remote server

I want to manipulate files that are present on another server.

I tried telnet. I get the following error:
Connection to <hostname> closed by foreign host.

I need to do this through a KSH. Any help is appreciated!

Thanks,
Edison
# 2  
Old 01-03-2009
That means you are not allowed to telnet to that server.
Have you tried to ssh to it?
# 3  
Old 01-06-2009
I have not tried ssh. Do we need anything installed on the UNIX server in order to be able to SSH?
# 4  
Old 01-06-2009
Yes, an ssh daemon like openssl's sshd. This is very, very common however, I would be suprised if a UNIX server didn't have something like that installed, even if maybe disabled. Just try logging in with ssh and see if it works, it easily could.
# 5  
Old 01-07-2009
Could you please give me a command?

Since I am running a script i do not want the remote server to prompt for a password.
# 6  
Old 01-07-2009
If you don't want ssh to prompt for a password then you should setup keys between the client and the server. A quick Google search should give you all the information you require to set this up.
# 7  
Old 01-07-2009
Quote:
Originally Posted by edisonantus
Could you please give me a command?

Since I am running a script i do not want the remote server to prompt for a password.
The command is simply ssh. It is used like:
Code:
ssh username@hostname 'command to execute'

If you omit any command to be executed, you get an interactive shell.

Like Lazydog says, logging in without a password is something you must set up in advance. This involves generating a public/private key pair and placing it on the server so the server and client can recognize each other. Once this is done, you will be able to run the command without any special parameters and login without a password. Hunt for ~/.ssh/authorized_keys in ssh's manpage.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

2. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

3. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

4. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

5. Solaris

Script to get files from remote server to local server through sftp without prompting for password

Hi, I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script. Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies

6. Programming

SFTP from one remote server to another remote server from desktop

Hi, I have 1. lappy 2. server A 3. server B Now, what i need is to run a command from lappy that will sftp a file from server A to server B. Please guide me to achieve this. -akash (1 Reply)
Discussion started by: akash.mahakode
1 Replies

7. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed. ... (5 Replies)
Discussion started by: arunkumarmc
5 Replies

8. Shell Programming and Scripting

Can a script runned in local server access remote server?

Hi, Im creating a script that is supposed to run commands on remote server using sftp. My script is as below: #!/bin/ksh sftp remote_server mypassword cd /u08/mydir/allfiles mget * .. But this is what I got when I runned the script: Connecting to remote server...... (3 Replies)
Discussion started by: luna_soleil
3 Replies

9. Shell Programming and Scripting

Transfer file from local unix server to remote server

want to remove this thread. thanks (2 Replies)
Discussion started by: indira
2 Replies

10. Shell Programming and Scripting

FTP multiple files from remote server to local server

Hi, I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies
Login or Register to Ask a Question