ssh -D 8080 user@192.168.20.122
, где 192.168.20.122 ubuntu server hosthttp_proxy=http://127.0.0.1:8080
Acquire {
HTTP::proxy "http://127.0.0.1:8080";
HTTPS::proxy "http://127.0.0.1:8080";
}
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Could not connect to 127.0.0.1:8080 (127.0.0.1). - connect (111: Connection refused)
Err:2 http://nz.archive.ubuntu.com/ubuntu bionic InRelease
Could not connect to 127.0.0.1:8080 (127.0.0.1). - connect (111: Connection refused)
Err:3 http://nz.archive.ubuntu.com/ubuntu bionic-updates InRelease
Unable to connect to 127.0.0.1:8080:
Err:4 http://nz.archive.ubuntu.com/ubuntu bionic-backports InRelease
Unable to connect to 127.0.0.1:8080:
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not connect to 127.0.0.1:8080 (127.0.0.1). - connect (111: Connection refused)
W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Unable to connect to 127.0.0.1:8080:
W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Unable to connect to 127.0.0.1:8080:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not connect to 127.0.0.1:8080 (127.0.0.1). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.
comboBox1.Items.Add("item");
comboBox1.SelectedIndex = "item";