switching users in sshpass causes a an unexpected error from the server

12 views Asked by At

I am using the following line:

sshpass -p 'PASSWORD' ssh -o StrictHostKeyChecking=no user@hostname "sudo su - diffUser 'cd ${HOME} && git clone <reponame>'"

I get the following error:

unexpected error

0

There are 0 answers