Skip to content

Instantly share code, notes, and snippets.

@peketamin
Last active August 2, 2018 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peketamin/3cef4b996db8742d517d32925c6376fa to your computer and use it in GitHub Desktop.
Save peketamin/3cef4b996db8742d517d32925c6376fa to your computer and use it in GitHub Desktop.
ssh port forward database port
If this error cause,
```
Received disconnect from UNKNOWN port 65535:2: Too many authentication failures
Disconnected from UNKNOWN port 65535
```
```
$ ssh host-name -o 'IdentitiesOnly yes'
```
ssh -o ProxyCommand='ssh -i ~/.ssh/bastion.pem -p 22 -W %h:%p ec2-user@xxx.xxx.xxx.xxx' -L 6432:remote-db-host:5432 hogehoge-stg-web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment