Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I prefer to run sbackup via sudo to be able to backup other things than my normal user has access to. But sbackup fails to connect to the specified host via ssh when it is run via sudo. It says

Unable to mount host

Still I have no problem to ssh into the specified host with my normal user. Is there any way to fix this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Since you run sbackup via sudo you need to add the specified host to the local root account. To do this run invoke ssh via sudo to login with your normal user, i.e. if your normal user is nn:

sudo ssh -l nn <address to specified host>

You will then see something like

The authenticity of host [...] can't be established.
ECDSA key fingerprint is [...]
Are you sure you want to continue connecting (yes/no)?

Choose yes here and you are done (you do not actually have to log in).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.