DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Other OS

Other OS Any other OS such as Microsoft Windows, BeOS, Plan9, Syllable, and whatnot.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd November 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default program for ssh to windows box and do many thing

Can we find , program we install it on Windows Box and use it , for example I can copy and past and see picture and movie and ssh to Windows box and control it and do many things ?
I want this program.
Reply With Quote
  #2   (View Single Post)  
Old 23rd November 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

there is answer
Reply With Quote
  #3   (View Single Post)  
Old 23rd November 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by mfaridi View Post
...and ssh to Windows box...
Recognize that you can only SSH into a box which has an SSH daemon or service running which can process incoming requests.

As far as I know, Cygwin provides an OpenSSH server with the tools that they provide. More information can be found on their Website:

http://cygwin.com/
Reply With Quote
  #4   (View Single Post)  
Old 23rd November 2008
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by ocicat View Post
Recognize that you can only SSH into a box which has an SSH daemon or service running which can process incoming requests.

As far as I know, Cygwin provides an OpenSSH server with the tools that they provide. More information can be found on their Website:

http://cygwin.com/
I didn't know what he was talking about but after your answer I think he probably wants something like

rdesktop (remote desktop)

The client is obviously ported to OpenBSD but he needs Windows machine which runs so called M$ Terminal Services. I know that Windows 2000 and NT
have those by default. Windows XP professional should have terminal services
but home edition is highly unlikly to have it.

TightVNC should have server version for Windows as well. The same goes for RealVNC. So he can VNC
to his Windows box but rDesktop is I think better solution.



There is lots of open source activity
for Windows I would not be surprised if they have something to say besides
above two solutions.

Last edited by Oko; 23rd November 2008 at 05:35 PM.
Reply With Quote
  #5   (View Single Post)  
Old 23rd November 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

I'm not quite sure if this is an answer for you, but there is winscp. It runs on the Windows machine and is a graphic client--it creates an ssh session to the BSD box, and you can copy files between them that way.
Reply With Quote
  #6   (View Single Post)  
Old 24th November 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by ocicat View Post
Recognize that you can only SSH into a box which has an SSH daemon or service running which can process incoming requests.

As far as I know, Cygwin provides an OpenSSH server with the tools that they provide. More information can be found on their Website:

http://cygwin.com/

I check cyg and install it , it is nice and good and make something like terminal for windows , I can do many thing
but I can not ssh from OpenBSD box to Windows box ,
I need something I can ssh fro OpenBSD box to windows and do many thing
Reply With Quote
  #7   (View Single Post)  
Old 24th November 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by Oko View Post
I didn't know what he was talking about but after your answer I think he probably wants something like

rdesktop (remote desktop)

The client is obviously ported to OpenBSD but he needs Windows machine which runs so called M$ Terminal Services. I know that Windows 2000 and NT
have those by default. Windows XP professional should have terminal services
but home edition is highly unlikly to have it.

TightVNC should have server version for Windows as well. The same goes for RealVNC. So he can VNC
to his Windows box but rDesktop is I think better solution.



There is lots of open source activity
for Windows I would not be surprised if they have something to say besides
above two solutions.
I use TightVNC but I want connect with SSH , and I control my windows Box with SSH from OpenBSD box
Reply With Quote
  #8   (View Single Post)  
Old 24th November 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

As windows is has never had decent command line access, and command-line programs for windows are rather scarce, ssh access to a Windows box is never going to be all that exciting.

but do check out sysinternals stuff. He did make command line versions of many of his utilities. He was headhunted by microsoft a year or so back, but they still make most of his tools available. (I think MS got tired of having to refer to his 3rd party tools in their knowledge base so often - and knowing that he knew more about the internals of Windows than anyone they had on staff was a little galling, too!)
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #9   (View Single Post)  
Old 24th November 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by mfaridi View Post
...I can not ssh from OpenBSD box to Windows box ,
Since I do not use Windows as an SSH server, I can only point you to where this is discussed in the documentation:If this helps you, great. If it doesn't, then all I can do is point you to the documentation so you have sift through it yourself.
Reply With Quote
Old 24th November 2008
schrodinger's Avatar
schrodinger schrodinger is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ireland
Posts: 69
Default

check out copSSH
__________________
It was a new day yesterday, but it's an old day now.
Reply With Quote
Old 24th November 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by ocicat View Post
Since I do not use Windows as an SSH server, I can only point you to where this is discussed in the documentation:If this helps you, great. If it doesn't, then all I can do is point you to the documentation so you have sift through it yourself.
I install cygwin and install openssh , but I do not know why I can not ssh from openBSD box to windows box , and I can ssh from windows box to other boxes.
Reply With Quote
Old 24th November 2008
dk_netsvil dk_netsvil is offline
Real Name: Devon
Fdisk Soldier
 
Join Date: May 2008
Location: New York
Posts: 75
Default

How about netcat? Install the nc.exe application on your Windows machine and execute within it's directory like so:

nc -l 8999 -d -e cmd.exe -L

this will invoke netcat to listen for remote connections on port 8999 and, when it detects one, it will then execute cmd.exe which will give you access to the Windows psuedo-command line interface. The -d flag lets you run this detached from a console and the -L flag indicates that this process should restart using the same CLI parameters next time.

Over on your OpenBSD box you just execute this on the command line:

nc <ip of the M$ box> 8999

Now, this isn't anywhere in the neighborhood of secure, since it will allow ANY connection attempted on port 8999, but it should give you the ability to use the remote command line and do, as requested, "many things"

If this was, for whatever reason, the way I was forced to connect to my M$ machines I would enforce a very strict firewall and use OpenVPN or something similar to connect to the local network before trying to connect to a listening netcat process. You don't want strangers connecting to your Windows machines and playing around. Well, maybe you do - I certainly don't. Come to think of it, I better go unplug those from the network just in case.....
Reply With Quote
Old 24th November 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

In order to have an SSH server running, you must start the sshd service. Google for "cygwin sshd" and you will find several how-to documents.

Keep in mind, mfaridi, that what you like to do -- copying/pasting commands without knowing what they do -- is generally a bad thing.
Reply With Quote
Old 28th November 2008
warrendubz warrendubz is offline
New User
 
Join Date: Nov 2008
Posts: 1
Default Consider the right tools for the job...

You might want to rethink how you are appoarching this. Take a step back and look at what is available for remote administration. Try using somehting like webmin. They make a windows version that lets you configure about everything from web applcation portal. I like using webmin becuase you can cluster the servers and automate alot of sysadmin tasks. I would recommend against putting webmin on a port facing the internet.

-- side note I am looking for a way to pass WMI commands to windows from a UNIX eviroment. But I am just doing that for R and D. --
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install program guitarscn OpenBSD General 3 31st August 2009 08:40 PM
How to learn to program under BSD? Sunnz Programming 5 24th December 2008 11:45 PM
run linux's program johnzlly OpenBSD General 38 8th November 2008 12:10 PM
Get sysctl value from a C program DNAeon FreeBSD Ports and Packages 3 29th September 2008 07:28 PM
Executing a c program Libran Programming 13 12th August 2008 11:42 PM


All times are GMT. The time now is 11:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick