Skip to content

Instantly share code, notes, and snippets.

@epicfilemcnulty
Created June 11, 2023 18:25
Show Gist options
  • Save epicfilemcnulty/e3cb6ab511b11ad46c829fe09da0b739 to your computer and use it in GitHub Desktop.
Save epicfilemcnulty/e3cb6ab511b11ad46c829fe09da0b739 to your computer and use it in GitHub Desktop.
wizard-vicuna with embeddings, one question, different quantized variants of the model
[
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],
"content":"You can do this using the -L flag in your SSH command line options. For example, if you want to forward all incoming traffic on port 8080 to localhost port 8080, you would run the following command:\n\nssh -L 8080:localhost:8080 username@remote\\_host\n\nThis sets up a SOCKS 4/5 proxy on your local machine listening on port 8080, which forwards incoming requests to localhost port 8080.","role":"assistant","model":"WizVicUncen13.8bit","embedding":"Man pages", "rate":19.3
},
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],"content":"You can configure SSH to act as a SOCKS server using the -D option. For example, if you want to run a web browser through SSH, you could start it like this:\n\nssh -D 8080 username@remote\\_machine\n\nThis would create a SOCKS server listening on port 8080 on your local machine, which you could then configure your web browser to use instead of its built-in HTTP proxy. The -D option creates a tunnel between your local machine and the remote machine, allowing any traffic sent to localhost:8080 to be routed through the tunnel and out to the internet via the remote machine.","role":"assistant","model":"WizVicUncen13.4bit-QLoRA","embedding":"Man pages", "rate":13.28
},
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],"content":"You can use the -R option in SSH to forward connections from remote hosts to your local machine. Specifically, you would use the following command:\n\nssh -R [bind_address:]port:local_socket user@remote_host\n\nThis will allocate a socket on your local machine to listen to port on the remote host. Whenever a connection is made to this port on the remote host, SSH will forward it to the local port specified by :local_socket. If no explicit destination was specified, SSH will act as a SOCKS 4/5 proxy and forward connections to the destinations requested by the remote SOCKS client.","role":"assistant","model":"WizVicUncen13.ggml.q8","embedding":"Man pages", "rate":20.8
},
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],"content":"To make SSH act as a local SOCKS server, you need to use the -R option followed by the port number and host information. For example, if you want to forward port 80 on your local machine to port 80 on a remote machine, you would use the following command:\n\n```\nssh -R 80:192.168.1.1:80 user@remote_machine\n```\nThis will create a SOCKS server that listens on port 80 on your local machine and forwards connections to port 80 on the remote machine.","role":"assistant","model":"WizVicUncen30.ggml.q2","embedding":"Man pages", "rate":10.72
},
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],"content":"To make SSH act as a local SOCKS server, you need to use the -D option followed by the local port number that you want to forward traffic to. For example, if you want to forward traffic to port 8080 on your local machine, you would use the following command:\n```\nssh -D 8080 user@remote_host\n```\nThis will create a tunnel between your local machine and the remote host, with all traffic going to port 8080 on your local machine being forwarded over the secure channel and then to the remote host. You can then configure your applications to use the SOCKS proxy at localhost:8080.","role":"assistant","model":"WizVicUncen30.ggml.q3_km","embedding":"Man pages", "rate":11.64
},
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],"content":"To make SSH act as a local SOCKS server, you need to use the -D option followed by the port number on the remote machine. For example, if you want to forward traffic from port 8080 on the remote machine to port 80 on the local machine, you would use the following command:\nssh -D 8080 user@remote_machine","role":"assistant","model":"WizVicUncen30.ggml.q3_kl","embedding":"Man pages", "rate":10.02
},
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],"content":"To make SSH act as a local SOCKS server, you can use the -D option followed by the port number that you want to forward. For example, if you want to forward port 8080 on your local machine to the remote host, you would use the following command:\n\n```\nssh -D 8080 user@remote_host\n```\n\nThis will create a SOCKS proxy on your local machine that listens on port 8080. Any connections made to this port will be forwarded over the secure channel to the remote host. You can then use any SOCKS-aware application, such as a web browser or an FTP client, to connect to the remote host through the local SOCKS proxy.","role":"assistant","model":"WizVicUncen30.ggml.q4_0","embedding":"Man pages", "rate":12.49
},
{"content":"How can I make SSH act as a local SOCKS server? ","role":"user"},
{"sources":["/storage/datasets/manpages/ssh.txt"],"content":"To make SSH act as a local SOCKS server, you need to specify the -D flag followed by the local port number on which the SOCKS server will listen. For example, if you want to run a SOCKS server on port 8080, you would use the following command:\nssh -D 8080 username@remote_host","role":"assistant","model":"WizVicUncen30.4bit-QLoRA","embedding":"Man pages", "rate":4.67}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment