It is troublesome to type long commands such as ssh login, so I thought it would be easier if I could start the command with a shortcut. There is also an alias, but it is troublesome to register each time, and in the end you have to type a command.
I'm not sure if it works for other distros, but it probably works for Ubuntu.
--Create an empty file on the directory. The name is arbitrary and the extension is .desktop
.
--Write the following contents in the created file using gedit or vim.
Enter a descriptive name in Name and the command you want to execute in Exec.
[Desktop Entry]
Name=ssh_connect_raspberrypi
Exec=ssh [email protected]
Terminal=true
Type=Application
--Give execute permission to the file. Right-click and select Properties> Permissions and select Checkbox.
--Then it becomes an executable file, so double-click it to start the terminal that executed the specified command.
By the way, the content described is actually here in the property of the shortcut of the terminal, so you can also create it by editing this.
Recommended Posts