10 lines
342 B
Bash
10 lines
342 B
Bash
#!/bin/bash
|
|
# Get the servername argument
|
|
servername="$1.wh20.easyname.systems"
|
|
|
|
# Define the username
|
|
username="${WHUSER:?Bitte WHUSER setzen!}" # Wenn WHUSER als Umgebungsvariable gesetzt ist, wird dieser verwendet. Sonst Username eintragen.
|
|
|
|
# Open an SSH connection and execute the command
|
|
ssh $username@$servername -t "sudo plesk login"
|