I am trying to sync firewall rules between two VRRP mikrotik and setup SSH key between them. is there any scp/sftp client available in RouterOS so i can transfer file between two mikrotik? I don’t want to use ftp or third party server to transfer file between two MT.
I mentioned there, I don’t want to do ftp because it’s not secure on wire. If RouterOS can run SSH server don’t you think it should support scp client atleast?
The point is not hacking or brute force attack... If your two devices communicate with each other a third party can read your unencrypted credentials from wire.
It is true that FTP is not secure. Credentials and the data are passed in cleartext. However, if you're using VRRP, I would expect your routers and the cables between them to be relatively secure. If the routers and cables are secure, then capturing the traffic between these two devices seems quite unlikely. If the cables pass through unsecured areas or devices, then I share your concern. If your routers are insecure, you have bigger problems than FTP.
I dont know how to implement it in mikrotik but knowing a bit of ipsec i think you can establish some ipsec rules to “encript” your ftp ports (for example tcp 21, i dont remember if password data goes trough that one) between your routers
Also you can paste your firewall rules from a third equipment like a server on both routers. Just an idea how would i do it
I gave it a try, but did not succeed. The server is running openssh 7.9p1, the account is locked to sftp only with openssh’s internal sftp implementation.
Finally found the cause for my issue with help of support. Looks like the sftp client in RouterOS fails if too many authentication methods are supported by the server. On my SSH server I added this block in /etc/ssh/sshd_config:
Match User mikrotik-upload
AuthenticationMethods password
been dealing with this lately and it does work with pub key authentication - which is superior to password. esp that password auth is disabled by default in openssh.
you can easily add private keys to the respective account in routeros, and there it is.