This commit is contained in:
luk 2024-05-09 20:01:04 +08:00
parent 3035d92ac6
commit c0b8ce4ced
2 changed files with 2 additions and 8 deletions

View File

@ -61,7 +61,7 @@ then
echo "=== Deny root login: PermitRootLogin no"
sed -i "s|PermitRootLogin |#PermitRootLogin |g" /etc/ssh/sshd_config && echo 'PermitRootLogin no' >> /etc/ssh/sshd_config
echo "=== Allow password login: PasswordAuthentication yes"
sed -i "s|PasswordAuthentication |PasswordAuthentication |g" /etc/ssh/sshd_config && echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
sed -i "s|PasswordAuthentication |#PasswordAuthentication |g" /etc/ssh/sshd_config && echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
service sshd restart
echo
fi

View File

@ -19,16 +19,10 @@ read -p ">>> " RUNPM2
echo "--- Creating ./$DATADIR/geth.ipc ..."
# http.addr 默认为 127.0.0.1 => 无法从远处连接。要用 0.0.0.0 才能从远处用 IP 连接。
# shh 是 whisper 协议,好像要先启动 websocket 接口才能启用。
# 我的 PEX 链的默认端口:
# - pex=739
# - chainid 6739
# - networkid 6739
# - rpc 端口/http.port 6739
# - 网络端口/port 60739
while [ ! "$KEYCODE" ]
do
echo "=== Define chain keycode, for instance '739' for pexchain:"
echo "=== Define chain keycode, for instance '882' for tuc chain:"
read -p ">>> " KEYCODE
done