Hi,
Is there a way to upload files from RouterOS via SFTP?
I have tried what I have found on the forum but nothing seems to work.
/tool fetch should be able to do it it seems, but I can not get it to work.
Any idea's?
Thanks!
Yes, it works. Show your commands and what happens...Hi,
Is there a way to upload files from RouterOS via SFTP?
I have tried what I have found on the forum but nothing seems to work.
/tool fetch should be able to do it it seems, but I can not get it to work.
Any idea's?
Thanks!
That's the wrong way. He want to upload from RouterOS, not to.I use the following in Linux systems:
Oops. Didn't read -- too much frustration with my own fledgling efforts at scripting.That's the wrong way. He want to upload from RouterOS, not to.
No, even my old RB751 (mpisbe 400MHz) can connect via SFTP. (I do not run my SSH server on Synology NAS, though.)Anyone else experiencing such issue?
What you do in this case? Just open case in forum and do nothing ? Even no screenshot.Please keep on topic, tnx
/tool fetch upload=yes url="sftp://xx.xx.xx.xx/home/users/sibex/file.txt.rsc" src-path="/file.txt.rsc" user="sibex" password="**alphanumeric**"
status: failed
failure: closing connection: <> xx.xx.xx.xx:22 (9) (6)
Aug 31 23:09:52 23207 sshd[18688]: Received disconnect from yy.yy.yy.yy:11: [preauth]
/system logging add topic=ssh,!packet
14:54:19 ssh,debug transport state: 0 --> 1
14:54:19 ssh,debug transport state: 1 --> 2
14:54:19 ssh,debug client version: SSH-2.0-OpenSSH
14:54:19 ssh,debug transport state: 2 --> 3
14:54:19 ssh,debug host key algo: ssh-dss,ssh-rsa,ssh-dss
14:54:19 ssh,debug kex algo: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
14:54:19 ssh,debug enc algo CS: aes128-ctr,aes192-ctr,aes256-ctr
14:54:19 ssh,debug mac algo CS: hmac-sha1,hmac-ripemd160
14:54:19 ssh,debug comp algo CS: none,zlib@openssh.com
14:54:19 ssh,debug packet follows: 0
14:54:19 ssh,debug agreed on: diffie-hellman-group-exchange-sha256 ssh-rsa aes128-ctr aes128-ctr hmac-sha1 hmac-sha1 none none
14:54:21 ssh,debug transport state: 3 --> 4
14:54:21 ssh,debug requesting auth methods
14:54:21 ssh,debug auth methods: publickey,keyboard-interactive
14:54:21 ssh,debug doing keyboard-interactive authorization
14:54:22 ssh,debug got 1 prompts
14:54:22 ssh,debug keyboard interactive without pty not possible
14:54:22 ssh,debug code 0x0300000b closing..
14:54:22 ssh,debug transport state: 4 --> 0
14:54:22 ssh,debug closing connection: <> xx.xx.xx.xx:22 (9)
maybe is picky, but same ROS on arm platform (RB1100) working flawlessly, CRS328 failed with log belowAs posted in third post in this thread... RouterOS is picky about authentication methods.
Can you configure SSH server to disable all but password authentication? Follow the link above for details.
Try this for verbose logging:Code: Select all/system logging add topic=ssh,!packet
.Hello,
you can use publickey and keyboard-interactive thus it's not "only" password authentication.
Best regards,