I'm trying to build a private apt repository using reprepro. I managed to get password-less SSH login after creating a SSH key chain. I can successful login to the repository if I SSH into it.
On the client machine I added the repository in the apt sources list like:
deb ssh://repo@192.168.60.128:/home/repo/repos/apt/ubuntu xenial main
But when I try to use apt-get update
, I still need to enter the password otherwise it won't proceed. It only shows:
100% [Connecting to repo@192.168.60.128]
Is there a way that apt can use my key get access to the repository without entering a password?
sudo visudo guy guy-rcs=(root)NOPASSWD:/usr/bin/apt-get update,/usr/bin/apt-get upgrade
– Guy Liqui Lung Oct 06 '16 at 09:23guy@guy-rcs:~$ sudo apt-get update
and if you've done the rest, it won't ask for a password. – Katu Oct 07 '16 at 09:55