I know how to setup a simple proxy using ssh -D
,but I want to use username and password based authentication for this case. Is there any way?
Linux – How to setup a SOCKS proxy over ssh with password based authentication on CentOS
centoslinuxPROXYsocksssh
Related Topic
- SSH Authentication – Use Only Password and Ignore SSH Key
- Git for Windows – How to Tell Git Where to Find Private RSA Key
- Ssh – How to automate SSH login with password
- Disable SSH Password Login – How to Disable SSH Login with Password for Some Users
- Iptables – SSH Socks Proxy wiith iptables REDIRECT
- Restrict Password-Based SSH Access Per User and Allow Key Authentication
- Add authentication danted socks proxy
- Danted Socks Proxy with Authentication
Best Answer
Dynamic application-level port forwarding (
ssh -D
) doesn't support this feature. Take a look at the Dante for instead:But note that the password is transmitted in cleartext.
To configure username based authentication, open the
/etc/sockd.conf
file and add/change the following:Check the listening sockets after starting:
Take a look at the logs file (
/var/log/messages
or/var/log/dante.log
) if you get something wrong.PS: the system password file (
/etc/passwd
) is used to verify a username and password combination.