As I know, I can connect to remote Windows server through SSH from Linux and use Powershell. But how I can connect without ssh from linux? Maybe exists native tools?
If you wanted a remote desktop session, you could use the rdesktop package:
Description: RDP client for Windows NT/2000 Terminal Server
rdesktop is an open source client for Windows NT/2000 Terminal Server, capable
of natively speaking its Remote Desktop Protocol (RDP) in order to present
the user's NT/2000 desktop. Unlike Citrix ICA, no server extensions are
required.
I'm unaware of any other native Windows protocols similar in spirit to ssh.
I guess you could install a VNC daemon on your Windows system so you could use VNC clients on your Linux boxes. Or you could install (well, no, please don't) a Windows telnet daemon, and use telnet to connect. Or you could install Citrix on your Windows server and use the Linux Citrix client. (Not a solution I enjoyed using in the past. I'd recommend sticking with ssh or VNC instead.)
If you want to get a shell you can try winexe
it works quite well on fedora
Related
I've tryed to RDP an Ubuntu 16.04 and an Mac OSX-lion machine from a Windows Home Pc on a local lan without succsess. What steps should I take for such a connection and which programs, preferably open source are best to use? If there in a link to a tuturial, please share it with me.
Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft, it is not available on Linux. You can use third party software like VNC, Teamviewer
I have a situation like, I need to run a program inmy Mac machine from a windows machine. Both are in same network.
If I have written the program as jar executable and located it in Mac ,
Will it be able to execute remotely from a windows machine.
I know this can be achieved by hosting a web service in Mac and accessing this service from windows can be done.
I need to know is there any other way so that I can execute a shell command in windows and trigger this program in Mac
The program will be a command line app. I need to programmatically invoke this app from windows PC
On the Mac, you need to enable Remote Login in the Sharing pane of System Preferences. On the Windows machine, you need an SSH client. You can then use the SSH client to connect to the Mac (with the proper credentials) and issue commands.
What would be the best way to establish remote desktop connectivity from a Windows 7 machine to Red Hat Enterprise Linux 6? The machines reside on the same network.
For graphic usage, you have at least the following options:
SPICE (http://spice-space.org/download.html)
NoMachine's NX Server (http://www.nomachine.com/)
VNC (http://www.redhat.com/magazine/006apr05/features/vnc/)
SPICE is newer and pretty slick. I've used NX Server for years and it's great. VNC is pretty unsecure, so use that as a last ditch option.
XRDP is a Remote Desktop Server implementation for Linux. It allows you to use the standard Remote Desktop client that ships with Windows to connect to remote Linux desktops. I've had good results using it in Fedora so I'd imagine it'd handle okay in RHEL.
Here's a tutorial on setting it up: http://sirjune.wordpress.com/2009/11/06/howto-xrdp-on-fedora-rhel/
Adding to the comment from #BoeroBoy. You have to also look into the firewall. I used TightVNC to connect from my workstation(Windows 7) to Red Hat Linux 6, but in vain was not able to(even after activating the Remote Access from System -> Preferences -> Remote Desktop).
So one should also look into System -> Administration -> Firewall and allocate necessary access for process and/or port(s).
We have been using a program called knock.exe successfully under Windows XP to knock on some set of ports which will then allow a connection to be established via ssh on another port to a remote machine. This program worked fine under Windows XP, but under Windows 7 it takes a lot longer to run (gives no error messages) and I am unable to connect to the remote machine.
If i run knock.exe inside a VM not running Windows 7 then connect using SSH from the Windows 7 machine, then it works.
Note that when running the port knocking application from Windows 7, the events get through to the remote machine because there is logging with the ip address of the local machine on the remote machine running knockd (linux).
I have also tried using knock7 from sourceforge with no success.
I have tried many other variations such as setting compatibility mode, and other port knocking applications with no success.
It seems like this is a change in the Windows 7 behaviour (possibly introduced in Vista) from the Windows XP behaviour.
It would be better to not have to run a VM just to do port knocking.
Any suggestions would be much appreciated.
Thanks!
use cygwin version of knock.exe
I need a virtual server for web development, it'll host Apache+Postgres+Ruby+something else.
What's the most effective software to run such a server? (ie with least virtualization overhead)
Is there a way to run Linux as as service?
I use VirtualBox at the moment, but it's inconvenient in some ways, such as it needs an emulator window open which also captures keyboard input when alttabbed into.
(Also, coLinux hangs at boot on my machine, so it's probably not an option)
Check out the features of VMWare Server. It's free, you just have to register.
I've never found VMware to be much of a performance hog unless running 3+ virtual machines.
The latest free server version (VMware Server 2) runs as a service IIRC, so you can set up your dev server to start up and shut down when your PC does, and you can either log on to the VM's console through the web interface, or create a shortcut on your desktop so it's fairly non-obtrusive.
There is a very convenient utility that hides VirtualBox from the foreground completely: vboxctrl. With vboxctrl you can run a Linux server on your Windows machine, make it automatically go to sleep when Windows shuts down or hibernates; then use any SSH client to log in to the server. Or you can use Xming to open graphical windows from the Linux server; I've worked quite a lot of time in GVim open through Xming.
If anyone needs more details, leave a comment, I may write an article about this.