Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

assh broke Sequel Pro's ssh tunnelling #143

Closed
snakewa opened this issue Apr 15, 2016 · 1 comment
Closed

assh broke Sequel Pro's ssh tunnelling #143

snakewa opened this issue Apr 15, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@snakewa
Copy link

snakewa commented Apr 15, 2016

Hi there,

I found that Sequel Pro's ssh tunnelling to connect to the remote mysql server using ssh tunnelling .

Looks like Sequel Pro cannot find "assh" as it is a relative path.

Here is the log:

Used command:  /usr/bin/ssh -v -N -S none -o ControlMaster=no -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -o NumberOfPasswordPrompts=3 -o TCPKeepAlive=no -o ServerAliveInterval=60 -o ServerAliveCountMax=1 xxx@xxx -L xxx:127.0.0.1:3306

OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/x/.ssh/config
debug1: /Users/x/.ssh/config line 53: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 102: Applying options for *
debug1: Control socket " none" does not exist
debug1: Executing proxy command: exec assh proxy --port=22 tiger.wizmacau.com
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_rsa type -1
debug1: permanently_drop_suid: 501
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/x/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
zsh:1: command not found: assh
ssh_exchange_identification: Connection closed by remote host

I found a workaround - modify ~/.ssh/config:

...
# global configuration
Host *
  ProxyCommand assh proxy --port=%p %h

Modify to absolute path:

...
# global configuration
Host *
  ProxyCommand /usr/local/bin/assh proxy --port=%p %h

But since every time I use assh the ssh config will be updated again. So how could I fix it permanently?

@moul moul added the Bug label Apr 15, 2016
@moul moul self-assigned this Apr 15, 2016
@moul moul added this to the v2.3.0 milestone Apr 15, 2016
@moul
Copy link
Owner

moul commented Apr 15, 2016

Hi @snakewa,

#134 fixes this, this commit replaces the relative assh with args[0]

I need to finish #122 before releasing a new version, with this fix.
For now you can build the latest version or create a symlink sudo ln -s /usr/local/bin/assh /usr/bin/ssh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants