I want to create a desktop shortcut that automatically logs into a testserver via ssh, and shows the active terminal.
Script:
#!/usr/bin/env bash
sshpass -p "mypass" ssh myusr@192.168.xxx.xxx
Link:
[Desktop Entry]
Version=1.0
Name=Connect SSH
Type=Application
Exec=/home/<user>/Documents/testserver.sh
Name[en_US]=Testserver
Question: it seems to work in general, but I don't see any terminal opening. How can I show the terminal that opened the ssh connection?
!/usr/bin/bash. You should setup sshkeys instead of putting your password in a file. Did you try to put abashbefore the line? How do you know itseems to work in general? – derHugo Aug 01 '17 at 15:14