4

I have a deb repository accessible with ssh (following instructions from this site). I use the ssh-public-key-based authentication to access the repository server.

How I can configure apt-get on clients to make it use a private key to connect to the repo? How to configure apt-get to use ssh-agent?

Whenever I call sudo apt-get update on a client machine, I need to provide a password for vagrant user. The source.list on the client machines:

deb ssh://vagrant@33.33.33.16:/ precise main

Update:

sudo ssh vagrant@33.33.33.16

Works after following instructions on making sudo work with ssh-agent. sudo apt-get update does not.

4

Works. I have removed the user from the deb repository definition in source.list:

deb ssh://33.33.33.16:/ precise main

and I specify the IdentityFile in /home/root/.ssh/config as suggested in this post

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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