1
vote
1answer
313 views

How to not run /etc/profile.d/custom.sh during Secure FTP login

When I attempt to Secure FTP (using WinSCP) to my CentOS 6.4 box I'm prompted with a message that states: Received too large (168438314 B) SFTP packet. Max supported packet size is 1024000 B. This ...
2
votes
2answers
148 views

Progress at fetching large file over sftp

I would like to get large file over sftp. I execute following commands: kopparberg:dev marek$ sftp -P 678 marek@server marek@server's password: Connected to server. sftp> cd backup sftp> get ...
2
votes
4answers
6k views

Detecting upload success/failure in a scripted command-line SFTP session?

I am writing a BASH shell script to upload all the files in a directory to a remote server and then delete them. It'll run every few hours via a CRON job. My complete script is below. The basic ...
0
votes
2answers
459 views

mkdir: cannot create directory `../abc/2011-11-23: No such file or directory

I have got a sftp script that downloads the archives , unzip it and then rename the files according to date and moves it to respective folder. I had to move the script from USB drive onto a separate ...
3
votes
2answers
765 views

Bash script works from prompt but not from cron

When running a bash script from cron it fails with the following error /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh: -c: line 1: syntax error: unexpected end of file ...
1
vote
3answers
669 views

Bash commands not working after SFTP script

I have the following bash script the SFTP works fine but the echo "Backup done" dosnt work #!/bin/sh sftp -b /dev/stdin server <<EOF cd /shares/backup/webserver/ put $bu_PATH$BACKUP_FILE ...
0
votes
1answer
108 views

how i can send and get file by using sftp?

how i can send and get file by using sftp ????
0
votes
3answers
272 views

canceled sftp password Requests?

i write bash file contain sftp command ... but i have problem every time i execute bash sftp requests password of the remote server .. how i can give sftp password as default parameter ???
0
votes
2answers
853 views

sftp remotly copy in bash file “unix”?

how i can write bash file to copy files from unix box to windows "remotly" box by sftp command ???