scp and ssh - for the same user - should use the same authentication method, so I can't see why ssh needs a password when scp doesn't.
Why can't you copy the file and then do the check?
steps are as below
check the cksum on remote server
copy the file on local server '
check the cksum on local server and it should match
Ok let me check why ssh is not working
---------- Post updated at 06:36 AM ---------- Previous update was at 05:16 AM ----------
Quote:
Originally Posted by RudiC
scp and ssh - for the same user - should use the same authentication method, so I can't see why ssh needs a password when scp doesn't.
Why can't you copy the file and then do the check?
Hi it seems to able to connect and run the command , however in the file I get count as well as file name , is there way I can put some thing like count separator with only file name (not full path) and last modified date of remote server
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by rbatte1; 11-21-2016 at 11:40 AM..
Reason: RudiC Added CODE tags; rbatte1 converted text list to formatted numbered list
Hi. In my KSH script I'm running a command on a remote server. I want to know how I can test to see if the remote server is available (accessible) prior to running the command. Any ideas?
My command looks like:
`ssh $USER@$TARGET_SERVER_DNS ls -l $REMOTE_FOLDER `
This check should be... (1 Reply)
Hi. In my KSH script I'm running a command on a remote server. I want to know how I can test to see if the remote server is available (accessible) prior to running the command. Any ideas?
My command looks like:
`ssh $USER@$TARGET_SERVER_DNS ls -l $REMOTE_FOLDER `
This check should be... (4 Replies)
Hi Everyone!
This is what I need to do...
I am deploying some directories over to a windows server 2000/3 box from my solaris10 box and I need to make sure the directories exist.
The only form of connection I have to work with is SSH
Currently, my script deploys the directories over... (13 Replies)
Hello, I would appreciate if any one can help me on this.
The below script start running at 12:30AM. Every 5 min, i go and check the remote site. If i see filewatch.txt over there, then i need to call another shell script and load the data into database. If i don't see that file, then i have to... (2 Replies)
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)
There is a process which copy files form unix a to unix b
I would like to check whether all files copied from a to b or not ,and list which are the missing files.
Is there a command to check like that (3 Replies)
Hi there,
I have a problem in my script,
I need to check whether file exists in remote server or not,
if the file exists, then stop copy
else copy the file to the server..
my code is something like this
while read $server
do
if ssh $server "cd $directory_name; if ; then echo "Error:... (2 Replies)
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)