I'm logging into a Cisco device that doesn't go directly to bash. I need rclone to login with user/password and then send "expert\n" and then it can copy things.
Can I do this? If yes then what flag am I failing to find?
Run the command 'rclone version' and share the full output of the command.
Your linux distro maintainers are not doing good job:)
Now back to your problem. Do I understand it correctly that you can not use sftp program directly? You have to ssh to this cisco box - enter some extra commands - and then sftp would work?
You know, I may not have been thinking this through as you're correct, and that doesn't sound like something that will work.
I was trying not to disable Cisco's shell as sometimes I need it, but maybe I just have to disable their shell. The only reason I'm doing rclone is because their sftp won't copy a 2GB file and their backups are over 2GB.
Just in case there is a work around:
If I SSH to the box and login I'm at Cisco's shell and I type expert to get to linux. Is there any way to get rclone past that? I'm guessing not but maybe I'll get a pleasant surprise.
Ok I do not think rclone can do this as it does not support ChallengeResponseAuthentication ( first authenticate via standard public key authentication, and then only if that succeeds, attempt keyboard-interactiv) - so not possible to connect to SFTP with 2FA etc.
You cisco box sounds for me like some form of this type of authentication - depends how they implemented it.
You could try e.g. FileZilla which does support it.