Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support SSH through SOCKS proxy #361

Open
Tracked by #44
davidrg opened this issue Oct 10, 2024 · 0 comments
Open
Tracked by #44

Support SSH through SOCKS proxy #361

davidrg opened this issue Oct 10, 2024 · 0 comments
Labels
feature ssh Affects the SSH subsystem

Comments

@davidrg
Copy link
Owner

davidrg commented Oct 10, 2024

Kermit 95 2.1.3 should do it, so 3.0 ought to as well. The implementation needs to go into ssh_open_socket(char*,char*) in ckossh.c.

The old version of ckossh.c likely has the required code. Looks like you just call various SOCKS functions rather than the regular ones (eg, SOCKSconnect instead of connect):

ckwin/kermit/k95/ckossh.c

Lines 170 to 184 in 52f9a75

#ifdef CK_SOCKS /* SOCKS Internet relay package */
#ifdef CK_SOCKS5 /* SOCKS 5 */
#define accept SOCKSaccept
#define bind SOCKSbind
#define connect SOCKSconnect
#define getsockname SOCKSgetsockname
#define listen SOCKSlisten
#else /* Not SOCKS 5 */
#define accept Raccept
#define bind Rbind
#define connect Rconnect
#define getsockname Rgetsockname
#define listen Rlisten
#endif /* CK_SOCKS5 */
#endif /* CK_SOCKS */

@davidrg davidrg mentioned this issue Oct 10, 2024
17 tasks
@davidrg davidrg added feature ssh Affects the SSH subsystem labels Oct 10, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature ssh Affects the SSH subsystem
Projects
None yet
Development

No branches or pull requests

1 participant