mirror of
https://github.com/teddysun/across.git
synced 2025-04-23 04:19:31 +08:00
commit
b561ddfe2d
@ -1,8 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
getpass(){
|
||||||
|
stty -echo
|
||||||
|
read -p "输入密码:" passwd
|
||||||
|
stty echo
|
||||||
|
}
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "输入端口号" && read port
|
echo "输入端口号" && read port
|
||||||
echo "输入密码" && read passwd
|
getpass
|
||||||
echo "输入容器名" && read name
|
echo "输入容器名" && read name
|
||||||
|
|
||||||
method=('aes-128-ctr' 'aes-192-ctr' 'aes-256-ctr' 'aes-128-cfb' 'aes-192-cfb' 'aes-256-cfb' 'bf-cfb' 'camellia-128-cfb' 'camellia-192-cfb' 'camellia-256-cfb' 'chacha20' 'chacha20-ietf' 'rc4-md5' 'salsa20')
|
method=('aes-128-ctr' 'aes-192-ctr' 'aes-256-ctr' 'aes-128-cfb' 'aes-192-cfb' 'aes-256-cfb' 'bf-cfb' 'camellia-128-cfb' 'camellia-192-cfb' 'camellia-256-cfb' 'chacha20' 'chacha20-ietf' 'rc4-md5' 'salsa20')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user