#! /bin/bash
cd /root/
mkdir ~/.ssh
cd /root/.ssh/
wget http://自定义网址/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
SSHPORT="22"
echo -n "Enter SSH Port : "
read -p "(Default Port : 22):" SSHPORT
if [ "$SSHPORT" = "" ]; then
SSHPORT="22"
fi
echo "=================================="
echo SSH Port is "$SSHPORT"
echo "=================================="
sed -i "s/# Port 22/Port $SSHPORT/g" /etc/ssh/ssh_config
sed -i "s/#Port 22/Port $SSHPORT/g" /etc/ssh/sshd_config
sed -i "s/#RSAAuthentication/RSAAuthentication/g" /etc/ssh/sshd_config
sed -i "s/#PubkeyAuthentication/PubkeyAuthentication/g" /etc/ssh/sshd_config
sed -i "s/#AuthorizedKeysFile/AuthorizedKeysFile/g" /etc/ssh/sshd_config
sed -i "s/#PermitEmptyPasswords/PermitEmptyPasswords/g" /etc/ssh/sshd_config
sed -i "s/PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config
service sshd restart

比如:E:\我的电影\japanAV\XXX\SIS.txt ?
求分享japanAV,

| 欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) | Powered by Discuz! X3.4 |