Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


putty for ubuntu
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

putty for ubuntu

VbroVbro Member
edited February 2017 in Help

I've few servers to manage so I used putty for ssh access. And I created putty shortcuts for each server on windows laptop.

It was like this.

C:\putty.exe [email protected] -pw password

Just switch from windows to ubuntu and no idea how to create auto login shortcuts on ubuntu 16.04 64bit. Please help me

Comments

  • ssh config

    Host something
    HostName 123.456.0
    User root
    
    Thanked by 1Vbro
  • Just do as hzr mentioned above:

    nano /etc/ssh/ssh_config

    And add at the end of the file

    host friendly_name
    HostName 192.168.1.250
    User root
    Port 22

    After that you can just do something like this from your laptop

    ssh friendly_name

    Thanked by 1Vbro
  • @hzr said:
    ssh config

    Host something
    HostName 123.456.0
    User root
    

    @rivermigue said:
    Just do as hzr mentioned above:

    nano /etc/ssh/ssh_config

    And add at the end of the file

    host friendly_name
    HostName 192.168.1.250
    User root
    Port 22

    After that you can just do something like this from your laptop

    ssh friendly_name

    Thanks a lot. It worked. But I have to type my password each time when I login from this. I have 8 servers with different passwords. Also right click copy paste not working there. Putty was really simple for everything. How to do this with putty?

  • rivermiguerivermigue Member
    edited February 2017

    You'll better use ssh keys instead of passwords. Linux OS has a built in ssh terminal, no need for putty on linux

    Thanked by 1Vbro
  • WSSWSS Member
    edited February 2017

    If you want to only type your password once, look into ssh-askpass- this won't work for different passwords. Depending on what shell you're using, paste and copy may very well be the middle mouse button (or both at once). Use a featureful terminal, they usually have a copy/paste built in. UXTerm will have this ability; rxvt probably doesn't.

    Thanked by 1Vbro
  • ClouviderClouvider Member, Patron Provider

    +1 for the keys

    Thanked by 1Vbro
  • IkoulaIkoula Member, Host Rep

    I also recommand the use of ssh keys, even if it will require more effort to setup and even if it is one key to rule them all it is more secure.

    Thanked by 1Vbro
  • Using SSH keys doesn't have to be complicated.

    Just generate a pair: ssh-keygen -t rsa -C comment

    Then copy the public key to each of your server: ssh-copy-id [email protected]

    You will then be able to SSH directly without password.

    Cheers!

    Thanked by 2Lm85H4gFkh3wk3 Vbro
  • emperoremperor Member
    edited February 2017

    Vbro said: Also right click copy paste not working there.

    Its not working on the linux version of putty.
    Install wine and then download putty windows version and run it from wine, you will have right click copy. There are a lot of tutorials for wine so you will not have problems

    Thanked by 1Vbro
  • raindog308raindog308 Administrator, Veteran

    Keys are best but there's also ssh-agent.

    Thanked by 1Vbro
  • rskrsk Member, Patron Provider

    emperor said: ts not working on the linux version of putty. Install wine and then download putty windows version and run it from wine, you will have right click copy. There are a lot of tutorials for wine so you will not have problems

    Pfff... why wine when it is only going to be used for ssh ...................

    Thanked by 2Lm85H4gFkh3wk3 Vbro
  • SSH keys works fine. Thanks to everyone who helped me.

    Thanked by 1raindog308
Sign In or Register to comment.