Login or Register to Ask a Question and Join Our Community

connecting to Unix from windows - help

Thread Tools Search this Thread
Special Forums IP Networking connecting to Unix from windows - help
# 8  
Old 03-31-2005
If you don't want to install any external software, this link on automating windows ftp may help you.
# 9  
Old 04-14-2005
From my perspective i will go on using VNC its much reliable then telnet. Im using RealVNC (www.realvnc.com)
# 10  
Old 03-04-2008
Hi ,

I have a much similar question asked in the first post.
In my script(which is in HP UX server) I want to connect to another Unix IBM server and run a script there.After this i want my control back to the first server(The HP).

Is this possible?

I tried something like:
telnet IBMserver

echo "admin"
echo "password"
I am getting connected to IBM server but its not taking my echo values as username and password.
How can I resolve this issue?

The following is the output I am getting(I am doing ctrl C after the promt for login remains for long time):

AIX Version 5
(C) Copyrights by IBM and by others 1982, 2006.
login: ^CConnection closed by foreign host.
./new.sh[10]: r: not found
./new.sh[12]: r: not found
# 11  
Old 03-04-2008
You should really consider SSH for this kind of thing. Set up SSH keys with an empty passphrase (or better use ssh-agent - but anything is better than telnet Smilie). Then you can do:
echo "I am on server A"
ssh serverb /path/to/remote_script.sh
echo "I am back on server A"

Transmitting your credentials in the clear over a telnet session is a BadThing (TM).

# 12  
Old 03-04-2008
hi ZB,

Thanks for your reply.
The reason why I am opting for telnet is, SSH is not configured in any of the servers (I am not authorised to do so)

I am getting the following output while trying your code:

ssh: connect to host IBMServer port 99: Connection refused
# 13  
Old 03-04-2008
i strongly suggest you setup ssh and use that ... your error looks more like a setup issue than an actual prohibition since telnet is still enabled ...

however, if ssh cannot be used --- why don't you use remsh instead of telnet? this way you avoid transmitting passwords in clear text ... make sure $HOME/.rhosts is setup properly and you should be good to go ...

do "man remsh" for more info ...

good luck!
# 14  
Old 03-20-2008
I'm not sure if windows can do bash like scripting but this is how I do it in a Unix environment:
(sleep 3; echo "user"; sleep 3; echo "password"; sleep 3; echo "some cmd") | telnet;

I got the idea from this post: https://www.unix.com/shell-programmin...#post302114365
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Connecting to Windows server from UNIX through script

I am trying to connect to a Windows server say This servers has a folder named RAJ in which there are multiple .zip files. All these zip files contain a text file called XYZ.txt. Now i have to merge the content of these XYZ.txt files from each of the .zip file and create a new text... (1 Reply)
Discussion started by: swapniljadav
1 Replies

2. Virtualization and Cloud Computing

Connecting windows to Vmware

Hi , I have installed Centos 6.5 in my VMWare on windows 7 , My Internet is running fine on both VMWare OS and windows 7 . When I am trying to connect from putty on my window to Vimware Linux but it does not connect. Please help what should I do to connect the window system to Linux System (6 Replies)
Discussion started by: kaushik02018
6 Replies

3. Windows & DOS: Issues & Discussions

Connecting to UNIX from Windows without using putty

Hi Is there any command which we can try connecting unix from windows without using any third party tool. Thanks in advance KVB (9 Replies)
Discussion started by: bikky6
9 Replies

4. Shell Programming and Scripting

Connecting to Windows Server

Hi, One of the folders in UNIX is mapped with a drive on Windows.From this UNIX machine I want to connect to the Windows Server, perform some checks and view the results back on the UNIX machine. For e.g. if I touch a file under the shared folder on UNIX, I should be able to telnet to Windows... (2 Replies)
Discussion started by: swasid
2 Replies

5. Solaris

Connecting Hard drive to Windows

Ok i have a bad slice on my solaris 10 hard drive. And that so happens to be where the data is that i need. there are 10 corrupt block that are not allowing it to mount. I tried everything fro ufsdump to fsck -Y -o f and nothing works. so i took the drive out and plugged it into a external USB ->... (4 Replies)
Discussion started by: deaconf19
4 Replies

6. UNIX for Advanced & Expert Users

connecting windows remotely from unix using SSH

Hi Can someone giv me some knowledge on accesing windows from unix and executing DOS scripts using SSH I would like to know how to go abt it...am new to it. Thanks in advance (1 Reply)
Discussion started by: lakshmis10
1 Replies

7. Windows & DOS: Issues & Discussions

Connecting UNIX to Windows

Is there a way to connect to Windows from UNIX. From Windows to UNIX, there is a putty that can be used. Is putty also possible to use to connect? (2 Replies)
Discussion started by: punyenye
2 Replies

8. UNIX for Advanced & Expert Users

connecting to windows from unix

how to connect to windows from unix??? (7 Replies)
Discussion started by: hemant30
7 Replies

9. UNIX for Dummies Questions & Answers

connecting windows pc to sco openserver

I connected my windows 2k professional to sco openserver. i want to know how i should setup sco , so when i login from windows it will log me into my home dir on sco (1 Reply)
Discussion started by: scoman
1 Replies

10. IP Networking

Connecting SGI to Windows PC

I am trying to network an SGI running Irix 6.5 through an ethernet line to a PC running Windows 2000 (I have connected other PC's to this PC without any problems.) The PC has a DSL connection from Verizon that does not support Unix. I tried using DHCP on the SGI, but when I open a web browser on... (2 Replies)
Discussion started by: mdbanas
2 Replies
Login or Register to Ask a Question

Featured Tech Videos