Skip to content

Instantly share code, notes, and snippets.

@wh1t3p1g
Created August 2, 2016 01:17
Show Gist options
  • Select an option

  • Save wh1t3p1g/4f612031e538547d8c74f50b12b06490 to your computer and use it in GitHub Desktop.

Select an option

Save wh1t3p1g/4f612031e538547d8c74f50b12b06490 to your computer and use it in GitHub Desktop.

Revisions

  1. 0kami created this gist Aug 2, 2016.
    4 changes: 4 additions & 0 deletions ssh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    ssh -T user@host /bin/bash -i 隐藏的远程登陆
    登陆后 unset HISTFILE;export HISTFILE=;export HISTFILE=/dev/null;export HISTSIZE=0;export HISTFILESIZE=0;export HISTIGNORE=*;export HISTCONTROL=ignorespace
    不记录命令
    ssh -o UserKnownHostsFile=/dev/null -T user@host /bin/bash -if 隐藏登陆+不记录