10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Below is the script I am trying to execute to rename a file in an SFTP session.
It is in GNU/Linux.
This script is for generic use and so I am passing arguments. Everything in the script works fine except "reading the filename in SFTP session"
In the below script the... (2 Replies)
Discussion started by: sparks
2. UNIX for Advanced & Expert Users
I have a task to create 3 users that must connect only via sftp on a machine, and must have only read access to a certain directory (thay shouldn;t be able to cd anywhere else)
The problem is that the directory where these users must have access to, it's already created/owned by another... (0 Replies)
Discussion started by: black_fender
3. UNIX for Dummies Questions & Answers
Using ftp i was able to get a directory listing to local directory.
ftp - i <host_name>
200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-rw-r-- 1 <uuu> <kkk> 160384 Apr 13 19:38 walmart.txt
226... (5 Replies)
Discussion started by: pavan_test
4. Shell Programming and Scripting
I am trying to send a file from my 9000 box to a vendor using sftp and I am getting this error: Couldn't close file: Failure
Here are the results of my automated script:
Connected to yyy.com.
Remote working directory: /
sftp> cd xxxxx/yyyyy_TEST/TEST
sftp> put FILE FILETEST... (1 Reply)
Discussion started by: nickg
5. Shell Programming and Scripting
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
sftp -b sftpCommand.txt firstname.lastname@example.org
The above... (1 Reply)
Discussion started by: noobrobot
6. Shell Programming and Scripting
Im trying to add some validation into my shell script code that basically checks whether a directory exists before SFTP'ing a file to it. If the directory exists then it will add the file, if not then it should return some kind of message. This is the code I have written so far but with no... (1 Reply)
Discussion started by: Jack_Maloney
I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP.
The aim is to... (1 Reply)
Discussion started by: sftpuser
8. Shell Programming and Scripting
I've got a C program that is using execlp to run a non-interactive sftp (using a batchfile) session to send some files to another system.
Just before doing that, I create the batchfile called sftp_batch on the fly:
put test.file... (2 Replies)
Discussion started by: Fiaran
9. Shell Programming and Scripting
I am not able to transfer large file completely (more than 60 MB) through automated SFTP script. It transfers only the partial file (approximately 55 MB) and it stops.
I use "expect" command to transfer file in a automatic mode through script. The file transfer rate i get is around... (0 Replies)
Discussion started by: prashant.patel
10. Shell Programming and Scripting
My requirement is to sftp a file from one server to another.After the file is completely transferrred, i should be able to create a text(dummy) file on the remote directory. How could this be accomplished. Any suggestions? (1 Reply)
Discussion started by: borncrazy