08-25-2016
For our new member
This explains what a here-doc is:
Here Documents
My understanding is the sftp works fine when in interactive mode and you transcribed down what you want your batch script to do
most sftp have a -b option for batch mode too...
This User Gave Thanks to vbe For This Post:
10 More Discussions You Might Find Interesting
1. HP-UX
Hi,
1) I want help on SFTP,Some commands not working in SFTP,but working in FTP
example: bin,ls -xt ,user. Any alternate methos for this
2) if I want download files from UNIX to NT,I am able to download,but file format not connverting according to UNIX format(in NT end of line \n,but in... (1 Reply)
Discussion started by: anthonykomma
1 Replies
2. Shell Programming and Scripting
Hi,
I have generated a Public/Private Key Pair in Solaris Unix (source) server and deployed the Public key in Windows 2003(target) server .ssh directory of user profile.
When i try to connect(ssh, scp, sftp) from Unix, i'm getting below error message.
Sun_SSH_1.1, SSH protocols 1.5/2.0,... (0 Replies)
Discussion started by: ajaykumarb
0 Replies
3. Linux
Hi,
I have a request to install sftp on the Sco Unix Server.
Request you please let me know the process for the installation of SFTP on Sco Unix Server.
Thanks & Regards
Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies
4. Shell Programming and Scripting
Hi all
Not sure where I should be posting this so apologies if it's in the wrong section.
I'm trying to set up a system where we can copy a file (get) from a Windows server to a Unix server using SFTP in an automated way.
I've installed CoreFTP Server on the Windows server and can connect... (2 Replies)
Discussion started by: huskie69
2 Replies
5. Shell Programming and Scripting
Hi,
I am writing a shell script that securely connects to an UNIX host and transfer file(abc.txt) from the local machine to the host.
sftp user@host
get abc.txt
bye
The code doesn't work..
It throws error at line 2: get :Unknown get command.
How can I rectify this problem? (2 Replies)
Discussion started by: Kishore_1
2 Replies
6. Shell Programming and Scripting
I need create a Shell script to do the SFTP process. How can i provide username and password in the script.I had the below code.But it ask for password.How can i add user name and password in this code
echo "OK, starting now..."
sftp -b /dev/fd/0 testwasds3l<<EOF
cd /opt/isproj/VOM/Scripts... (2 Replies)
Discussion started by: morbid_angel
2 Replies
7. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have many scripts where i have used sftp for file transfer from unix box to unix box.. Now that we have to sftp files from unix to mainframe, i would like to know if that is possible.
I just tried in the same way i did from unix to unix, but i got the error as connection refused.
Are... (2 Replies)
Discussion started by: dnat
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am iseries resource and having Issue in one of the sFTP failures between one of my job (Unix --> iSeries).
The response to sending machine (Unix) is "Write Failed Broken Pipe".
Appreciate any help Available on why this Issue happens, how can we replicate the same, what fixes can... (1 Reply)
Discussion started by: hamelchauhan
1 Replies
10. Shell Programming and Scripting
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)
Discussion started by: hemanthsaikumar
13 Replies
LEARN ABOUT OSF1
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. There are no options or config settings.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)