![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| connecting windows remotely from unix using SSH | lakshmis10 | UNIX for Advanced & Expert Users | 1 | 10-19-2007 01:41 AM |
| Connecting UNIX to Windows | punyenye | Windows & DOS: Issues & Discussions | 2 | 03-22-2006 03:57 AM |
| connecting to windows from unix | hemant30 | UNIX for Advanced & Expert Users | 7 | 12-01-2003 12:14 PM |
| connecting windows pc to sco openserver | scoman | UNIX for Dummies Questions & Answers | 1 | 07-18-2003 01:27 PM |
| Connecting SGI to Windows PC | mdbanas | IP Networking | 2 | 02-25-2002 09:20 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
connecting to Unix from windows - help
Hello,
I have a requirement like - I need to connect to specific Unix machine.That machine authenticates the user who is logging in. I am accessing from XP machine. Is possible to supply the Username & Password along with Host name and port, from Windows command prompt? If so how? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
If the target UNIX machine is running the telnet daemon, you can just telnet in from the Windows command prompt
i.e. telnet hostname port You'll then be prompted for a user name and password. If no port is specified it'll try the standard telnet port (23). If you're using SSH on the server, then download a free SSH client such as PuTTY. Cheers ZB |
|
#3
|
|||
|
|||
|
Hello,
I would first like to thank you for the quick response. I guess I haven't projected the exact problem. I was using it in the same way as you said. c:> telnet x.x.x.x 23 Thing is...I need to check the connectivity to different hosts, and all of them require authorization.We were checking them in the same way - first connect to the host,then supply the username & password. And then check for the remaining hosts similarly.It takes atleast 1-2 mins to test each host.We have to check different host with different login credentials. Also, this is a repetitive process which has to be done from time to time. So, this is consuming a lot of time.Is there any alternative to reduce this time taken? I am looking for, if it is possible to write a batch file for it, but upto now I couldnot makeout any thing. Also I have very little knowledge of Unix. Thanks KK |
|
#4
|
||||
|
||||
|
You could use something like expect for windows or python and write a script to automate this.
|
|
#5
|
||||
|
||||
|
Do you have to use 'telnet' to test connectivity to differnet hosts ?
You can use 'ping' as well. Right ? Just have a thought ... ; |
|
#6
|
|||
|
|||
|
I guess, from 'ping' command we can find only whether the host is reachable or not. But I dont think, the login crendiatials can be authenticated through this command.....
|
|
#7
|
||||
|
||||
|
you can also use ftp on cygwin ... (substitute 1st jack with the username and the 2nd jack with the password) ... i would suggest you ping the host first though ...
Code:
root_myserver:/home/scripts # ftp -inv << GO > open icehost > user jack jack > bye > GO Connected to icehost. 220 This system is for company related use only. Use may be monitored. 331 Password required for jack. 530 Login incorrect. Login failed. 221 Goodbye. root_myserver:/home/scripts # Last edited by Just Ice; 03-31-2005 at 08:27 AM. Reason: "<<" here document not supported on windows |
||||
| Google The UNIX and Linux Forums |