Skip to content

Instantly share code, notes, and snippets.

@wh1t3p1g
Created August 2, 2016 01:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wh1t3p1g/4f612031e538547d8c74f50b12b06490 to your computer and use it in GitHub Desktop.
Save wh1t3p1g/4f612031e538547d8c74f50b12b06490 to your computer and use it in GitHub Desktop.
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 隐藏登陆+不记录
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment