In windows we have created a batch file to login into a machine via putty. On clicking the batch file it logins into that machine. Is it possible to create a script in ubuntu to do the same task?
Create a launcher
and give it execution permissions.
Obviously you should put the real
To allow to choose the username, substitute the
Following up enzotib's answer: if you hardcode the login information in every script and file, it will make it more difficult to change it later if needed. A better solution would be creating a SSH configuration file with settings grouped under a host alias.
Instead or running:
you can create a
Each of the settings below
The command would then be:
You're allowed to override settings, the below command would login with username