I have downloaded Windows PowerShell SSH Server from Here. So, now i can ssh from Linux to Windows, and get to PowerShell.
But if i use another way, connect from Windows to Linux via SSH, i can run something like Midnight Commander or other File Manager. How can i run some File Manager under PowerShell under SSH from Linux?
I tried to run Far Manager, but not succeeded.
I don't believe such an interactive application is possible to be programmed in command prompt or PowerShell. So there is no way to do this even within PowerShell, let alone connect to PowerShell from a Linux system via SSH.
As pointed out by Ansgar Wiechers in the comment below, there are some File managers that run locally in a command prompt or PowerShell, but not in an SSH session.
Related
I've been using psexec for a while to do admin tasks and its very helpful. The other day I was looking at the online help and discovered the "-i" interactive switch so I started messing around with it and doing some research. This website explains the feature this way:
"For example, the following PsExec command will open the notepad.exe process on the remote computer and display it on the local user’s desktop:
psexec -i \\lon-srv01 notepad"
So at first I couldn't get it to work but then I found a few tips that helped and now I can invoke psexec with the "-i" switch from an administrator cmd prompt on my laptop, and use this syntax to launch an application on my workstation remotely.
Working syntax: PsExec.exe -i 5 -s \\<remotePC> regedit
So in this case, regedit launches on the remote machine but not on my local machine. Is my understanding of the interactive feature incorrect? I'm assuming the GUI should load on my local machine as well so I can do admin tasks. Am I wrong? Is the article I quoted wrong?
I'm seeing "interactive" in the documentation and assuming I can interact with the application GUI locally, similar to how I can interact with a linux application like Gedit remotely using a third party app like MobaXterm.
Can someone set me straight here?
Thanks,
I have Jenkins installed on Linux environment and would like to call a batch file on windows server. How do I achieve this?
This can be easily achieved w/ https://sourceforge.net/projects/winexe/
Also, there are other options, like using SSH to connect to the windows machine and launch the script.
Installed CYGWIN in my windows, I can able to access both windows & remote linux machines with the credentials. But i can't able to configure how the data will be moved from Linux to windows, can anyone please suggest me on this.
Thanks
Srinivas
To log into your cygwin instance remotely, you need to install the sshd module in cygwin and then set it up. Then you will be able to use the ssh command on your linux/unix machine to do one of many things:
open a bash shell in your cygwin instance
execute a remote command from linux/unix using: ssh WINDOWS_SERVER command
copy to the Windows machine remotely using scp or sftp.
I want to trigger command/script from Linux environment which copies file from windows system to my Linux environment.
I have set up local Linux server for my web application. I am using WinSCP for file transfer and Putty as a console.
I want to automate the process of build deployment of Linux server.For that i have to copy build which is on my windows machine and paste it in my local Linux server so that i can deploy it.
As per my understanding, there should be some shared location which is accessible from Linux environment.
Is there is any script available for this? Also, please tell me the configuration changes require to do this.
You can use synchronize command of winscp from your windows,
winscp synchronize command
or winscp.exe command from your command prompt.
winscp.exe command
Install cygwin and you can use scp, ssh etc just like you would on linux. Besides, you can use ordinary bash scripts instead of crappy bat-files.
OR
http://www.codingepiphany.com/2014/01/13/batch-script-for-transferring-files-from-windows-machines-to-linux-file-server/
OR
Use samba
you can use rsync for synchronize your files. http://linux.die.net/man/1/rsync
I'm trying to run automatic tests using Jenkins and I want to execute commands from my Jenkins server, which is a Lenny-64 on another virtual machine with Win7. To be clear, if I wanted to do it via two Unix machines, I would have done it using this:
ssh -i private_key python /root/test.py
Now, what is the alternative command for a windows target machine, or what should I deploy to run this on a windows machine.
Plus I want to transfer files from/to Jenkins server to/from Win7 machine.
How can I do these tasks?
I've been working around and I solved the issue. I installed cygwin with openssl and openssh libraries. For connections, I used RSA keys and for websvn commands, I used Tortoise SVN tool along with its command line.