当前位置:网站首页>ssh免密登录设置及使用脚本进行ssh登录并执行指令
ssh免密登录设置及使用脚本进行ssh登录并执行指令
2022-07-05 05:19:00 【xlbtlmy】
ssh免密登录
sudo apt-get install openssh-server
ssh-keygen -t rsa -C “你自己设定的名称或者邮箱地址”
cat ~/.ssh/id_rsa.pub >> .ssh/authorized_keys
/etc/init.d/ssh restart
脚本ssh登录并执行指令
@echo off
ssh -o ConnectTimeout=3 -l xlbtlmy 192.168.31.78 "echo xlbtlmy | sudo -S init 0"
timeout /t 3
边栏推荐
- Haut OJ 1221: a tired day
- Development error notes
- UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存
- Time format conversion
- 【ES实战】ES上的native realm安全方式使用
- 使用Room数据库报警告: Schema export directory is not provided to the annotation processor so we cannot expor
- When will Wei Lai, who has been watched by public opinion, start to "build high-rise buildings" again?
- [to be continued] [depth first search] 547 Number of provinces
- Kali 2018 full image download
- Ue4/ue5 illusory engine, material part (III), material optimization at different distances
猜你喜欢
随机推荐
Cocos2dx Lua registers the touch event and detects whether the click coordinates are within the specified area
Embedded database development programming (V) -- DQL
Pointnet++的改进
Haut OJ 1316: sister choice buys candy III
Simple HelloWorld color change
Django reports an error when connecting to the database. What is the reason
Listview is added and deleted at the index
[leetcode] integer inversion [7]
[转]MySQL操作实战(三):表联结
Haut OJ 1243: simple mathematical problems
PMP candidates, please check the precautions for PMP examination in July
PMP考生,请查收7月PMP考试注意事项
记录QT内存泄漏的一种问题和解决方案
SDEI初探-透过事务看本质
【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
UE 虚幻引擎,项目结构
GBase数据库助力湾区数字金融发展
Double pointer Foundation
[binary search] 69 Square root of X
xftp7与xshell7下载(官网)









![[interval problem] 435 Non overlapping interval](/img/a3/2911ee72635b93b6430c2efd05ec9a.jpg)