Weird problem with connection from putty to ubuntu server via SSH

Posted by Eye of Hell on Server Fault See other posts from Server Fault or by Eye of Hell
Published on 2010-04-13T09:36:03Z Indexed on 2010/04/13 9:43 UTC
Read the original article Hit count: 356

Filed under:
|

Hello.

I have an Ubuntu Server 9.10 box with sshd configured. I have two computers with Windows 7 professional and putty installed. Day ago, both computers was able to connect ubuntu server both via putty and plink. I have installed sun-java6-jre on ubuntu server, and now have a weird problem. First Windows 7 computer can still connect with both putty GUI and command-line plink. Second computer can connect via putty gui, but if i issue plink command that works perfectly on first computer:

plink www.hostname.tk -i c:\users\username\documents\key\private.ppk

I get login prompt, enter same username as on first computer, and receive following weird error message:

bash: www.hostname.tk: command not found

I can't see any difference between my Windows 7 computers :(. The ppk key used is same (i copied it multiple times both ways). hostname and username are same. Anyone have any ideas why such thing happens and what can i do in order to troubleshoot and fix it?

© Server Fault or respective owner

Related posts about ubuntu-server

Related posts about putty