How to log ssh debug info?

前端 未结 3 651
你的背包
你的背包 2021-02-01 02:15

I need to write the output of ssh debug info into the file. This

ssh -v root@172.16.248.xx > result.txt
ssh -v root@172.16.248.xx 2>&1 > result.txt
         


        
3条回答
  •  旧时难觅i
    2021-02-01 03:13

    Apparently the best way to save this "hidden" debug output to the file is by using logsave:

    logsave result.txt ssh -v root@172.16.248.xx
    

提交回复
热议问题