docs:tips_n_tricks:ssh.html
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:tips_n_tricks:ssh.html [14.10.2010 13:11 CEST] – created peter | docs:tips_n_tricks:ssh.html [10.06.2017 13:50 CEST] (current) – [References] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== SSH ====== | ====== SSH ====== | ||
- | ===== SSH Tunnel ===== | + | ===== Reverse |
Imagine you need access from a remote system to a local system, that is allowed to open ssh sessions to the remote system, but the remote system is not allowed to access your local services. This can be solved by using ssh tunnels. | Imagine you need access from a remote system to a local system, that is allowed to open ssh sessions to the remote system, but the remote system is not allowed to access your local services. This can be solved by using ssh tunnels. | ||
- | To enable access to a service on port 389 on a local system, open an ssh tunnel to the remote system | + | To enable access to a service on port 389 on a local system |
- | ssh -R 10389: | + | ssh -R 10389: |
- | to system // | + | Now, you can access the local service on localhost: |
+ | |||
+ | ===== Transport Terminal Encoding ===== | ||
+ | |||
+ | To transport your local LC_CTYPE setting to the remote host, use the line | ||
+ | |||
+ | Host * | ||
+ | | ||
+ | |||
+ | in '' | ||
+ | |||
+ | ===== Avoid waiting for GSSAPI timeout ===== | ||
+ | |||
+ | On some systems, ssh connects seem to be slow due to waiting for GSSAPI authentication timeout. | ||
+ | This can be avoided by the following config in '' | ||
+ | |||
+ | Host * | ||
+ | GSSAPIAuthentication no | ||
+ | |||
+ | |||
+ | ===== List Fingerprints ===== | ||
+ | |||
+ | To verify the keys in your '' | ||
+ | |||
+ | ssh-keygen -l -f .ssh/ | ||
+ | |||
+ | ===== Lock Keys in Agent on Mac OS X (maybe BSD) ===== | ||
+ | |||
+ | |||
+ | |||
+ | eval `SSH_ASKPASS=/ | ||
+ | ssh-add -c [keyfile] | ||
+ | ssh -A < | ||
+ | |||
+ | |||
+ | ''/ | ||
+ | #! /bin/sh | ||
+ | |||
+ | exec xmessage -buttons ' | ||
+ | ===== Get rid of "PAM service(sshd) ignoring max retries; 6 > 3" ===== | ||
+ | |||
+ | Add | ||
+ | |||
+ | MaxAuthTries 3 | ||
+ | |||
+ | to ''/ | ||
+ | |||
+ | ==== References ==== | ||
+ | * [[https:// | ||
+ | |||
+ | ====== | ||
+ | |||
+ | {{tag> | ||
+ | {{entry> | ||
+ | {{entry> |
docs/tips_n_tricks/ssh.html.1287054699.txt.gz · Last modified: 14.10.2010 13:11 CEST by peter