当前位置:网站首页>远程工作的一些命令

远程工作的一些命令

2022-06-26 08:34:00 菜菜的阿庄

git配置

git config --global user.name “usrname”
git config --global user.email “[email protected]
ssh-keygen -C “[email protected]” -t rsa

cd ~/.ssh
cat id_rsa.pub

ssh免密登录

将上述生成的id_rsa.pub拷贝到ssh服务器的~/.ssh/authorized_keys:
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]服务器IP

sshfs映射远程目录

sshfs [email protected]:path localpath -o allow_other

linux远程控制其它主机

xfreerdp -u usrname -d domain -x 0 -p pwd -g 1440x820 ip

vscode ssh失败

这个总结很好

原网站

版权声明
本文为[菜菜的阿庄]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_28499879/article/details/125373942