禁用.ssh / config中设置的ssh端口转发


Answers:


2

使用ClearAllForwardings选项:

ssh -o ClearAllForwardings=yes machine

ssh_config(5)

ClearAllForwardings
指定清除配置文件或命令行中指定的所有本地,远程和动态端口转发。当从ssh(1)命令行用于清除配置文件中设置的端口转发时,此选项主要有用,并且由scp(1)和自动设置sftp(1)。论证必须是“是”或“否”。默认值为“no”。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.