10-10-2023 06:28 AM
Hello,
I have some issues with setting up a sftp repository on ISE 3.1. I use a synology NAS as sftp server but I have alo tried to use the solar winds sftp server on a PC with the same result. Using sftp from my windows machine works to both sftp servers.
This is what I see in ISE CLI after adding the host key and turned on debug transfer 7
6 [14763]:[info] transfer: cars_xfer.c[224] [admin]: sftp dir of repository SFTP-REPO requested
6 [14763]:[info] transfer: cars_xfer_util.c[2281] [admin]: Server validation successful x.x.x.
7 [14763]:[debug] transfer: sftp_handler.c[1078] [admin]: Running sftp command: x.x.x.x. *** *** //volume1/ISE_Backups/ ls -l //volume1/ISE_Backups/
6 [14763]:[info] transfer: sftp_handler.c[584] [admin]: DEBUG: local user: admin UID: 0 sftp_run_parent FD: 5 remote host: x.x.x.x remote user: xxx command: ls -l //volume1/ISE_Backups/
7 [14763]:[debug] transfer: sftp_handler.c[593] [admin]: fd is:5
7 [14765]:[debug] transfer: sftp_handler.c[291] [admin]: Executing SFTP command: 0 admin /usr/bin/sftp -oIdentityFile=/home/admin/.ssh/id_rsa -oUserKnownHostsFile=/home/admin/.ssh/known_hosts -oPasswordAuthentication=yes xxx@x.x.x.x
3 [14763]:[error] transfer: sftp_handler.c[844] [admin]: sftp_run_parent Error: unable to handle sftp output
7 [14763]:[debug] transfer: sftp_handler.c[963] [admin]: sftp parent status -999
% Error: Repository SFTP-REPO could not be accessed. In case Backup was Restored on different setup, Please reconfigure the repository passwords (expected behaviour)
Any one know what the problem could be?
Thanks
/Chess
10-10-2023 07:10 AM
I was able to solve it by changing the path from "/volume1/ISE_Backups/" to just "/" Not really sure why, but it works now.
10-16-2023 02:10 PM
Most likely because the home directory that is assigned to that user account is /volume1/ISE_Backups - many ftp/sftp servers will "jail" the user account to their home directory (for security reasons) - and when you connect to the server, the absolute path no longer makes sense to the server - your root is now / , and not /volume/....
11-24-2023 08:24 AM
on my case it was the other way around,
repository myrepository
url sftp: //10.10.10.100/home/backups/
user test password hash XXXXXX
#
ISENODE/admin#show repository myrepository
6 [3018358]:[info] transfer: cars_xfer.c[333] [system]: sftp dir of repository myrepository requested
6 [3018358]:[info] transfer: cars_xfer_util.c[2634] [system]: Server validation successful 10.10.10.100
7 [3018358]:[debug] transfer: sftp_handler.c[1232] [system]: Running sftp command: 10.10.10.100 test *** /home/backups/ ls -l /home/backups/
6 [3018358]:[info] transfer: sftp_handler.c[646] [system]: DEBUG: local user: admin UID: 0 sftp_run_parent FD: 7 remote host: 10.10.10.100 remote user: test command: ls -l /home/backups/
7 [3018358]:[debug] transfer: sftp_handler.c[656] [system]: fd is:7
7 [3018359]:[debug] transfer: sftp_handler.c[322] [system]: Executing SFTP command: 0 admin /usr/bin/sftp -oIdentityFile=/home/admin/.ssh/id_rsa -oUserKnownHostsFile=/home/admin/.ssh/known_hosts -oPasswordAuthentication=yes test@10.10.10.100
7 [3018358]:[debug] transfer: sftp_handler.c[503] [system]: Inside sftp_read_line under new line condition
7 [3018358]:[debug] transfer: sftp_handler.c[503] [system]: Inside sftp_read_line under new line condition
7 [3018358]:[debug] transfer: sftp_handler.c[540] [system]: Found sftp prompt; No more data to read
7 [3018358]:[debug] transfer: sftp_handler.c[1091] [system]: sftp parent status 0
7 [3018358]:[debug] transfer: cars_xfer_util.c[2613] [system]: ssh_list xfer succeeded
7 [3018358]:[debug] transfer: cars_xfer.c[378] [system]: freed file list
test3SFTP-CFG10-231124-1107.tar.gpg
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide