免费在线 MySQL/PostgreSQL/MongoDB/Redis 数据库云服务合集
              
    wivwiv
       
                    2020-04-26
                    
                    11,566
                   
                    阅读3分钟
            
	
 
	
	1cd到.ssh目录 当时版本的.ssh目录为 /data/ssh/root/.ssh
用文件管理器把生成的公钥id_rsa.pub丢到/data/ssh/root/.ssh目录里面来安装公钥
cat id_rsa.pub >> authorized_keys
chmod 644 authorized_keys
2修改sshd_config文件 :
RSAAuthentication
	
 
	
	package main
import (
   "fmt"
   "net"
   "net/http"
)
func sendMagicPacket(macAddr string, broadcastAddr string) error {
&