The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 03-16-2005
Registered User
 

Join Date: Mar 2005
Posts: 3
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?
Reply With Quote
Forum Sponsor
  #2  
Old 03-16-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
Reply With Quote
  #3  
Old 03-17-2005
Registered User
 

Join Date: Mar 2005
Posts: 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
Reply With Quote
  #4  
Old 03-17-2005
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,589
You could use something like expect for windows or python and write a script to automate this.
Reply With Quote
  #5  
Old 03-20-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Do you have to use 'telnet' to test connectivity to differnet hosts ?

You can use 'ping' as well. Right ?

Just have a thought ... ;
Reply With Quote
  #6  
Old 03-27-2005
Registered User
 

Join Date: Mar 2005
Posts: 3
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.....
Reply With Quote
  #7  
Old 03-31-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0