question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy Command issue

See original GitHub issue

Version: 1.0.150 Platform: darwin 20.6.0 Plugins: none

For example, In my ssh profile i have this in “Proxy command”: ssh hostname.com -p 55222 And i get this error:

 SSH  Connecting to hostname.com
 SSH   Proxy command  Using ssh hostname.com -p 55222
 SSH   Proxy command  Pseudo-terminal will not be allocated because stdin is not a terminal.
 SSH   Proxy command  mesg: ttyname failed:
 SSH   Proxy command  Inappropriate ioctl for device
 SSH   Proxy command  -bash: line 1: $'SSH-2.0-ssh2js1.1.0\r': command not found

When i use this command: ssh -tt hostname.com -p 55222 I get:

 SSH  Connecting to hostname.com
 SSH   Proxy command  Using ssh -tt hostname.com -p 55222
 X  Timed out while waiting for handshake
 SSH   X  Remote rejected opening a shell channel: Error: Not connected

 SSH  hostname.com: session closed
Press any key to reconnect

I originally wanted to connect through a socks proxy, so I used “Proxy command”: ssh root@hostname.com -p 55222 -o “ProxyCommand nc -X 5 -x 127.0.0.1:9050 %h %p” And i get:

 SSH  Connecting to hostname.com
 SSH   Proxy command  Using ssh -tt root@hostname.com -p 55222 -o "ProxyCommand nc -X 5 -x 127.0.0.1:9050 %h %p"
 X  Timed out while waiting for handshake
 SSH   X  Remote rejected opening a shell channel: Error: Not connected

 SSH  hostname.com: session closed
Press any key to reconnect

I love Tabby, but please help make connection with Socks-proxy. I use it on Mac OS with M1 processor.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Eugenycommented, Aug 2, 2021
  1. You can’t use ssh as a ProxyCommand because it’s not how ProxyCommand works in general. Use a jump host which is already available in Tabby as a profile option (under Advanced)
  2. Tabby doesn’t expand OpenSSH style variables in ProxyCommand (or any others, and there’s nowhere it could get %h and %p values from anyway) - you just need to use nc -X 5 -x 127.0.0.1:9050 hostname.com 55222 as your proxy command.
0reactions
snegodickcommented, Aug 28, 2021

In version 1.0.156-nightly.0 all works fine! Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proxy Command not working #3815 - iterative/dvc - GitHub
Hello! I have a decentralized setup with a distributed master dvc cache in a private server, it is behind a jump server (proxy)....
Read more >
How the Windows Update client determines which proxy ...
To configure a proxy server by using the Netsh.exe tool · Click Start, click Run, type cmd, and then click OK. · At...
Read more >
Troubleshooting the proxy server - IBM
The proxy server was created successfully, but I am unable to start it. Check the SYSOUT file for port conflicts. Use the netstat...
Read more >
proxy - Problems with SSH ProxyCommand - Stack Overflow
The problem seems to be, that the proxy tries to login with my local rsa_key and not with the key stored on the...
Read more >
Problems with SSH ProxyCommand execution - Server Fault
Problems with SSH ProxyCommand execution - Server Fault. Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found