Skip to content

about socket code - #508

Closed
ozhiwei wants to merge 1 commit into
paramiko:masterfrom
ozhiwei:master
Closed

ozhiwei wants to merge 1 commit into
paramiko:masterfrom
ozhiwei:master

Conversation

@ozhiwei

@ozhiwei ozhiwei commented Apr 6, 2015

Copy link
Copy Markdown
  1. socket-like object via pass parameter of ‘connect’ function to use
    socks5 proxy
  2. lessen socket code

1. socket-like object via pass parameter of ‘connect’ function to use
socks5 proxy
2. lessen socket code
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.09%) to 72.61% when pulling c9679bb on uhe1231:master into cfeca48 on paramiko:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.09%) to 72.61% when pulling c9679bb on uhe1231:master into cfeca48 on paramiko:master.

@ozhiwei

ozhiwei commented Apr 9, 2015

Copy link
Copy Markdown
Author

you can code like this to use socks5 proxy, but needs socks module

import socks
import paramiko

socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 8080)
socks.socksocket()

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect("hostip", 22, "root", "passwd", socks=socks)

@bitprophet

Copy link
Copy Markdown
Member

Took another look at this, why did you "clean up" the socket code? A lot of that was added recently to handle some issues re: IPv6+IPv4 coexisting :( Can you please update this to only be the feature related change? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants