8/29/2023 0 Comments Terminal session manager![]() ![]() This lead to an error saying something about actions not being defined. I had to run desktop-file-install /usr/share/applications/ Turns out there is a Desktop Action section you can add which lets you do something by right clicking the icon in the dock.ĭoing a little more research, I found that there is a desktop installer. I made a backup of that file and played around with it for a bit. This lead me to the bundled terminal file at /usr/share/applications/ desktop file format and looked at some bundled files for inspiration. I got really curious as to what extra things can be added to the. ![]() Other Note: I have tested it and you CAN use Password Auth still with this method My braindump ![]() Note: This probably won't work for Password auth SSH, but its best practice to use SSH keys anyway (See for a great explaination of setting those up) Turns out the Desktop launcher syntax is documented ( ), but it isn't the clearest to follow. Right click the terminal app and click "SSH My Remote". desktop-file-install /usr/share/applications/ /usr/share/applications/Īctions=new-window preferences ssh-my-remote // added the custom action name hereĮxec=gnome-terminal - ssh the desktop-file-install command to update the Terminal launcher. The Desktop Application approach is good, but if you'd rather a custom action on the Terminal app menu, read this.Įdit the Terminal desktop launcher file to add your custom ssh-my-remote Action and define it further down. Thankfully there's even a little application to handle that for you: ssh-copy-id ssh should just log in without prompt.įor your one-click launchers, you can just make a launcher with the following sort of command: gnome-terminal -e "ssh also write little alias scripts in my ~/.bash_aliases file that fire off the connection (because I'm really lazy!). When you're done there you just upload your key to the server. It'll ask if you want a passphrase that has to be entered each time you use the key. (Sidebar: Never ever, ever, ever give anybody your private key.) Just run: ssh-keygen This comprises of a public key and a private key. It's fairly powerful stuff and quite simple to get started.įirst you need to generate a key for your user. Are you just bothered about punching in your details each time you can use SSH key authentication so your user can log into other computers without a password. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |