4
I'm setting up a VM based Linux Mint 14 Cinnamon dev env and just installed putty to connect to my Ubuntu servers. Problem is that when I try to use "username@hostname" or "username@ip" (no quotes obviously) then I get the error "Unable to open connection to username@hostname: Name or service not known".
If I use just the hostname or IP it connects fine - it asks for the username and then correctly logs in using my private key.
On my Windows 8 host machine I use "username@hostname" in Putty's Host Name field and it works flawlessly.
Does the Linux putty use a different syntax in the host name field? I checked around but couldn't find anything.
I also want/wanted to do the same because of the same reason so the question itself was so valid even if it is strange for experienced linux desktop users :) (I have also considered to use simply just ssh command but you know, habits) – Halacs – 2019-12-27T20:28:48.803
I think you are answering your own question, clearly it does have a different syntax since your usual one does not work :). Why in the world would you want to use putty for linux? Why not just ssh directly? – terdon – 2012-12-02T13:39:31.223
@terdon The syntax differs using the command line. I'm referring to the GUI, which should also have an option to set the username. – AndyCNX – 2012-12-02T19:46:02.207
I realize that but if the windows syntax does not work then the linux one must be different. Seriously though, why do you want putty on linux? What does it offer over normal ssh? You can simply open a terminal and type
ssh user@host
. – terdon – 2012-12-02T20:06:52.557Fair enough question. I'm switching from Windows to doing my dev work in a Linux VM. I guess I was just sticking to solutions I'm used to as part of my usual workflow. Just one less thing to figure out for when I need to setup port forwarding or something. I have started using ssh and zssh now instead. – AndyCNX – 2012-12-03T09:18:00.067