To use sftp in batch mode, you must first set up password-less authentication.
Then
or
create a file called input.data
and call "sftp -b user@mainframe input.data
If you cannot set up password-less authentication, you may be able to solve the issue by having an intermediate MS Windows machine running Winscp3 http://winscp.net
so it that file you want me to mention the username and password and then after it gets connected to the mainframe server i should use get and get the file i want form that location to the usix server .
correct me if i am wrong???/
Hi all,
I want to sftp to a server called serverB. I want to do it via a running a script. The code i have written is that..
sftp -v x.x.x.x << EOF
user username password
cd dir1
bin
mget *
bye
EOF
But it is not at all working and even it is asking for... (2 Replies)
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)
HI all
I need a script that would take the file from a mainframe to another server.Presently i am using a ndm but i am not knowing what the changes would be required to change to sftp.
Can you please provide some code that would be helpful
Thanks (7 Replies)
Hi,
I have configured keygen-ssh settings on my remote server and from putty also now I log on from my machine through putty to remote server and it is pass wordless authentication , Now I have a small sftp script that transfer text files from one folder to another folder within that server... (4 Replies)
Hi,
After logging in to a server, Can I open a new sftp connection to the same server from the same server itself. Does it have any connection issues/limitations for ports etc. and can I copy/move files using the new sftp connection in the same server. Do we have any limitations of opening new... (1 Reply)
Hi Experts,
I am writing one shell script. Below is the requirement
1. need to login to the SFTP server, go to the particular folder
2. take the file count in that folder and assign it to variable
3. came out of the SFTP server and check the condition, if the file count is less than the... (1 Reply)
hi
i need to transfer some files from windows server to unix server using SFTP. but before transferring the files, i need to check the
existence of a particular file in the remote directory (say r_dir1). if the file is present, then SFTP all the files.
after SFTPing the files from the remote... (1 Reply)
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)
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)