My requirement : i want to pass some commands with sshpass command. ex 1:
sshpass -p 'sshpass' ssh -oKexAlgorithms******* user@host touch /mnt/us/pass
above sshpass example works perfectly.
sshpass -p 'sshpass' ssh -oKexAlgorithms******* user@host mntroot rw
in above example, in host i have to give
mntroot rw to enable read write permission for the logged user. this command not works when i pass with sshpass command and it throws
sh: mntroot: not found error but it works perfectly in host when i logged in and entered it manually.
please help me on this.