Use SCRIPT_DIR, add sshpass and auto-mount workspaces, update flakes
This commit is contained in:
parent
8534f7efb9
commit
9aa72fade7
8 changed files with 292 additions and 413 deletions
|
|
@ -85,12 +85,15 @@ main() {
|
|||
local port
|
||||
port=$(get_ssh_port)
|
||||
|
||||
# Build SSH command
|
||||
# Build SSH command with sshpass for automated password auth
|
||||
local ssh_cmd=(
|
||||
sshpass -p root
|
||||
ssh
|
||||
-o StrictHostKeyChecking=no
|
||||
-o UserKnownHostsFile=/dev/null
|
||||
-o LogLevel=ERROR # Suppress host key warnings
|
||||
-o PubkeyAuthentication=no # Use password auth (password: root)
|
||||
-o PasswordAuthentication=yes
|
||||
-p "$port"
|
||||
root@localhost
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue