I'm having some serious issues uploading from SFTP to a remote SFTP server.
The remote server is Ubuntu server 20.04. Its in the same subnet.
I can see it connect in the SSH log files on the Ubuntu server but it seems to be closed by the Mikrotik instantly.
The Mikrotik complains of "failure: closing connection: <no such file> 192.168.1.8:22 (5) (6)"
Code: Select all
> file print
# NAME TYPE SIZE CREATION-TIME
0 disk1 disk sep/16/2020 20:26:29
1 text2.txt .txt file 0 oct/11/2020 17:27:36
2 log.0.txt .txt file 7.9KiB oct/12/2020 06:46:48
3 flash disk oct/12/2020 06:46:48
4 flash/auto-before-reset.backup backup 15.1KiB jan/01/1970 08:00:08
5 flash/skins directory jan/01/1970 08:00:07
6 flash/pub directory oct/07/2018 04:53:10
/tool fetch upload=yes url=sftp://192.168.1.8/ftp/text.txt user=ftpuser password=somepassword src-path=log.0.txt src-address=192.168.1.20
status: failed
failure: closing connection: <no such file> 192.168.1.8:22 (5) (6)
Code: Select all
Oct 12 19:16:24 web-services sshd[1357]: pam_unix(sshd:session): session opened for user ftpuser by (uid=0)
Oct 12 19:16:24 web-services systemd-logind[764]: New session 5 of user ftpuser.
Oct 12 19:16:24 web-services systemd[1372]: pam_unix(systemd-user:session): session opened for user ftpuser by (uid=0)
Oct 12 19:16:26 web-services sshd[1357]: pam_unix(sshd:session): session closed for user ftpuser
Oct 12 19:16:26 web-services systemd-logind[764]: Session 5 logged out. Waiting for processes to exit.
Oct 12 19:16:26 web-services systemd-logind[764]: Removed session 5.
If anyone can give some pointers that would be greatly appreciated.