ssh转发

linux隧道转发通过22端口实现端口转发


client->sshhost->mailhost

ssh -L localport:remotehost:remoteport sshhost #sshhost 中间左右联通的管道

client ->sshhost (客户端8080端口转发到sshhost 80)

ssh -L 8080:localhost:80 sshhost

ssh -X //x11

ssh -Nf -L 2025:mailhost:25 sshhost