u
This commit is contained in:
parent
3035d92ac6
commit
c0b8ce4ced
@ -61,7 +61,7 @@ then
|
|||||||
echo "=== Deny root login: PermitRootLogin no"
|
echo "=== Deny root login: PermitRootLogin no"
|
||||||
sed -i "s|PermitRootLogin |#PermitRootLogin |g" /etc/ssh/sshd_config && echo 'PermitRootLogin no' >> /etc/ssh/sshd_config
|
sed -i "s|PermitRootLogin |#PermitRootLogin |g" /etc/ssh/sshd_config && echo 'PermitRootLogin no' >> /etc/ssh/sshd_config
|
||||||
echo "=== Allow password login: PasswordAuthentication yes"
|
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
|
service sshd restart
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
@ -19,16 +19,10 @@ read -p ">>> " RUNPM2
|
|||||||
echo "--- Creating ./$DATADIR/geth.ipc ..."
|
echo "--- Creating ./$DATADIR/geth.ipc ..."
|
||||||
# http.addr 默认为 127.0.0.1 => 无法从远处连接。要用 0.0.0.0 才能从远处用 IP 连接。
|
# http.addr 默认为 127.0.0.1 => 无法从远处连接。要用 0.0.0.0 才能从远处用 IP 连接。
|
||||||
# shh 是 whisper 协议,好像要先启动 websocket 接口才能启用。
|
# shh 是 whisper 协议,好像要先启动 websocket 接口才能启用。
|
||||||
# 我的 PEX 链的默认端口:
|
|
||||||
# - pex=739
|
|
||||||
# - chainid 6739
|
|
||||||
# - networkid 6739
|
|
||||||
# - rpc 端口/http.port 6739
|
|
||||||
# - 网络端口/port 60739
|
|
||||||
|
|
||||||
while [ ! "$KEYCODE" ]
|
while [ ! "$KEYCODE" ]
|
||||||
do
|
do
|
||||||
echo "=== Define chain keycode, for instance '739' for pexchain:"
|
echo "=== Define chain keycode, for instance '882' for tuc chain:"
|
||||||
read -p ">>> " KEYCODE
|
read -p ">>> " KEYCODE
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user