# 阿里云linux重启实例后配置密码登录
1 min read
修改/etc/ssh/sshd_config 在最下面的: UseDNS no AddressFamily inet SyslogFacility AUTHPRIV PermitRootLogin yes PasswordAuthentication no 把这条改为yes PasswordA...
修改/etc/ssh/sshd_config 在最下面的: UseDNS no AddressFamily inet SyslogFacility AUTHPRIV PermitRootLogin yes PasswordAuthentication no 把这条改为yes PasswordA...
如: tail -f /var/log/secure | grep 58.39.166.141 返回值(例如): Dec 18 18:38:20 iZ6weh5sqq28g70gojw9z0Z sshd[24109]: Accepted publickey for root from 58.39.1...
一般是安装完什么新软件,如游戏加速器,代理等后出现内网或外网不同的情况, 可以使用一下操作重置网络,需要重启 ipconfig /flushdns ipconfig /registerdns netsh winsock reset...
直接上命令 history 1 | { read x cmd; echo “$cmd”; } 对于read命令的了解,仅限于在shell脚本中使用read -p,对于这种用法从来没用过,更不知道它的含义。 今天抽空琢磨了一下,终于搞明白了来龙去脉。先来写几个命令吧: # read a b c...
使用 ll 命令查看文件时,能看到如下信息在首列 drwxrwxrwx 第一个字母:代表文件类型 第2~4字符:表示当前用户的权限 第5~7字符:表示当前用户组权限 第8~10字符:表示其他用户的权限 d:目录 r[4]:读权限 w[2]:写权限 x[1]:可执行权限 chmod命令 a:...