当前位置:网站首页>SSH password free login settings and use scripts to SSH login and execute instructions
SSH password free login settings and use scripts to SSH login and execute instructions
2022-07-05 05:24:00 【xlbtlmy】
ssh Password free login
sudo apt-get install openssh-server
ssh-keygen -t rsa -C “ Your own name or email address ”
cat ~/.ssh/id_rsa.pub >> .ssh/authorized_keys
/etc/init.d/ssh restart
Script ssh Log in and execute instructions
@echo off
ssh -o ConnectTimeout=3 -l xlbtlmy 192.168.31.78 "echo xlbtlmy | sudo -S init 0"
timeout /t 3
边栏推荐
- Talking about JVM (frequent interview)
- Haut OJ 2021 freshmen week II reflection summary
- Haut OJ 1316: sister choice buys candy III
- Quick sort summary
- Use the command character to close the keyboard command of the notebook
- 注解与反射
- [turn to] MySQL operation practice (I): Keywords & functions
- Summary of Haut OJ 2021 freshman week
- A three-dimensional button
- Merge sort
猜你喜欢
Learning notes of "hands on learning in depth"
[to be continued] [UE4 notes] L3 import resources and project migration
Service fusing hystrix
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: meta line 6 and head, line 8, column 8
Bucket sort
win10虚拟机集群优化方案
Remote upgrade afraid of cutting beard? Explain FOTA safety upgrade in detail
Use of snippets in vscode (code template)
【论文笔记】Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research
Shell Sort
随机推荐
[allocation problem] 135 Distribute candy
Demonstration of using Solon auth authentication framework (simpler authentication framework)
[turn to] MySQL operation practice (III): table connection
kubeadm系列-00-overview
挂起等待锁 vs 自旋锁(两者的使用场合)
[to be continued] [depth first search] 547 Number of provinces
MySQL数据库(一)
Pointnet++的改进
Grail layout and double wing layout
使用Room数据库报警告: Schema export directory is not provided to the annotation processor so we cannot expor
room数据库的使用
[转]MySQL操作实战(一):关键字 & 函数
Romance of programmers on Valentine's Day
小程序直播+电商,想做新零售电商就用它吧!
C language Essay 1
The next key of win generates the timestamp file of the current day
Service fusing hystrix
kubeadm系列-01-preflight究竟有多少check
[paper notes] multi goal reinforcement learning: challenging robotics environments and request for research
Support multi-mode polymorphic gbase 8C database continuous innovation and heavy upgrade