Operating System - HP-UX
1829951 Members
4001 Online
109998 Solutions
New Discussion

telnet string for putty shortcut

 
SOLVED
Go to solution
panchpan
Regular Advisor

telnet string for putty shortcut

Hello.
If i create a shortcut on desktop of putty.exe to connect to a ssh server. I give in target string of shortcut as "C:\Desktop\putty.exe" -ssh -l -pw .

What must be given IF i connect using telnet protocol ?

THANKS
4 REPLIES 4
Georg Tresselt
Honored Contributor

Re: telnet string for putty shortcut

As I understand it you don't want to type your login and password each time. AFAIK you would have to create a .rhosts or .netrc file on the UNIX host for that.
http://www.tresselt.eu
panchpan
Regular Advisor

Re: telnet string for putty shortcut

Hello.
Yes, I do not want to give login/password. Please suggest what must be there in .rhosts file on target server?

THANKS
Matti_Kurkela
Honored Contributor
Solution

Re: telnet string for putty shortcut

The telnet protocol will *always* require you to type the username and the password.

If you use rlogin protocol, then you can use .rhosts file on the target server.

The .rhosts file format description is available with "man rhosts" on any HP-UX.
Briefly, each line contains either a hostname and an username or just a hostname.
For example, if the server user "suser" has the following line in his .rhosts file:

workstation.company.example someuser

it means that someone that connects using rlogin protocol from workstation.company.example and is named "someuser" will be logged on as "suser" on the server, _without typing the password_.

Using PuTTY, you can then connect to suser account on the server from workstation.company.example by:
putty -rlogin suser@server

If the .rhosts file contains just the hostname, the username on the source host (workstation) should match the username on the destination host (server).

Since the usernames on Microsoft Windows workstations are not necessarily compatible with Unix-style usernames, it is likely that the server cannot meaningfully check the workstation user's username. The server can only trust what the client says, and the workstation's owner can make his client lie.

In effect, anyone who can hijack workstation.company.example's IP address can use rlogin to connect like the legitimate user: this is why rlogin is not secure.
MK
Volker Borowski
Honored Contributor

Re: telnet string for putty shortcut

... and best is to use ssh and if you are anoyed of typing passwords, get yourself a Key using puttygen, load it with the puuty- agent while login into windows, and let the agent authenticae you by key :-)

Volker