I've setup my own repository which I want to use SSH as the protocol. I managed to get everything working with an SSH key using port 22.
Now, I would like to change the SSH port. I've already changed it on the SSH/repo server. Now I can't figure out how to change apt to use a custom port on the client computer.
My sources.list file line which worked over port 22:
deb ssh://firstname.lastname@example.org/home/user/repo lenny main contrib non-free
deb ssh://email@example.com:12345/home/user/repo lenny main contrib non-free
and it fails and actually says "failed connecting to port 22"
Can this be done? I've searched google for hours and I getting nothing but unrelated data. I've read the man pages. The man page for apt.conf specified that you can set the port this way for HTTP, but doesn't mention anything about ssh ports.
Also, a secondary question:
Can I somehow specify which SSH identity/key file to use for apt?