[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Hello Nethelpers [SSH / PUTTY]Strange behaviour with telnetd



Håkon Alstadheim wrote:
JB MORLA wrote:
Hi,
I have installed sshd on Debian and PuTTY on XP. PuTTY only connects via SSH when the line: telnetd.... is in inetd.conf not commented.
Are you sure putty is connecting via SSH? I have sometimes seen putty come up with telnet as the default protocol. Make sure you click to use SSH rather than telnet in putty before you try connecting. Watch the logs on the linux side to see what your client is actually doing. /var/log/auth is the place to look, or /var/log/messages if your system is not to busy. Use "less -S /var/log/messages". Hit "F" to get a running display as the file updates. Make sure you read the help at the bottom of the screen.
Indeed, the default state of PuTTY is to use telnet when you first run it, which is why the OP is having this problem You have to make the effort to select SSH, you can then save the session for future use. IMO it is also a good idea to keep telnetd permanently commented out of inetd.conf


There is something else I don't understand Suppose I generate a key on one pc using keygen, how do I copy it to the other machine? So far I understand that both pc must have the same private key in order to
encrypt/decrypt data traveling over ethernet?
Read "man ssh-keygen" on the linux side. At the end, in the end of the "Files" section it tells you what to do. Just add the public key from the windows-box to the authorized_keys file. Paste it in. Create the file if it does not exist. You can find an "scp" file-transfer program for your windows box the same place you found putty.
Please help if you can John B.




--
Bill



Reply to: