From c0b8ce4ced4eebd38b64e88ccd406a9892f8a37c Mon Sep 17 00:00:00 2001 From: luk Date: Thu, 9 May 2024 20:01:04 +0800 Subject: [PATCH] u --- debian-setup.sh | 2 +- geth-run.sh | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/debian-setup.sh b/debian-setup.sh index a45ca4e..7ec125c 100755 --- a/debian-setup.sh +++ b/debian-setup.sh @@ -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 diff --git a/geth-run.sh b/geth-run.sh index eac892c..c30df6b 100755 --- a/geth-run.sh +++ b/geth-run.sh @@ -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