实现ssh无密码别名登录
通过config管理ssh会话,实现使用别名登录。通过使用密钥,实现无需密码登录。在管理多个服务器时很方便。
brew install nvm |
添加以下内容到~/.zshrc
export NVM_DIR="$HOME/.nvm" |
source ~/.zshrc |
Ghidra
-> Search
-> For Strings
看到quickjs
, google that.
编译 运行 quickjs
$ git clone https://github.com/horhof/quickjs.git -b 20200119 --depth 1 |
check ctf.c
Option 1: ssh-agent
You can use ssh-agent to temporarily authorize your private key.
For example:
$ ssh-agent sh -c ‘ssh-add ~/.ssh/id_rsa; git fetch user@host’
Option 2: GIT_SSH_COMMAND
Pass the ssh arguments by using the GIT_SSH_COMMAND environment variable (Git 2.3.0+).
For example:
$ GIT_SSH_COMMAND=’ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no’
git clone user@host
You can type this all on one line — ignore $ and leave out the .
Option 3: GIT_SSH
Pass the ssh arguments by using the GIT_SSH environment variable to specify alternate ssh binary.
For example:
$ echo ‘ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $*’ > ssh
$ chmod +x ssh
$ GIT_TRACE=1 GIT_SSH=’./ssh’ git clone user@host
Note: The above lines are shell (terminal) command lines which you should paste into your terminal. They will create a file named ssh, make it executable, and (indirectly) execute it.
Note: GIT_SSH is available since v0.99.4 (2005).
Option 4: ~/.ssh/config
Use the ~/.ssh/config file as suggested in other answers in order to specify the location of your private key, e.g.
Host github.com
User git
Hostname github.com
IdentityFile ~/.ssh/id_rsa
ssh-keygen -p -N “” -m pem -f /path/to/key