Ssh: Difference between revisions
From DWIKI
mNo edit summary |
m (→FAQ) |
||
Line 1: | Line 1: | ||
=FAQ= | =FAQ= | ||
==multihop tunnel== | |||
ssh -A -t -l user jump-host \ | |||
-L 8080:localhost:8080 \ | |||
ssh -A -t -l user webserver.dmz \ | |||
-L 8080:localhost:8080 | |||
==Failed publickey== | ==Failed publickey== | ||
*acccess rights? | *acccess rights? |
Revision as of 16:15, 12 September 2017
FAQ
multihop tunnel
ssh -A -t -l user jump-host \ -L 8080:localhost:8080 \ ssh -A -t -l user webserver.dmz \ -L 8080:localhost:8080
Failed publickey
- acccess rights?
14: No supported authentication methods available [preauth]
Putty not configured to look at correct private key?
chrooted sftp
Per group:
/etc/ssh/sshd_config
Match Group sftponly ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no PermitTunnel no X11Forwarding no
#Remember this one to close Match block! Match all
Per user:
remove host key
ssh-keygen -R hostname Match User username ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no PermitTunnel no X11Forwarding no #Remember this one to close Match block! Match all
The ChrootDirectory must be owned by root.root with permissons 755. If you want group based access rights, you can do that in subdirectories.
ssh tunnel
ssh -L 1234:192.168.100.2:80 remotehost
And then connect to localhost:1234