copy /move the Data from the Linux Command line to local windows - linux

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.

Related

Git bash and x-win32 will work together for running linux applications remotely?

usually, school recommends using PuTTY with X-win32 to access and run linux software remotely on a window machine.
PuTTY is basically a tool to SSH into the linux machine from my understanding. Since I need to use github on my windows as well, git packages its own bash shell as a whole of git, so can it work with x-win32? I dont want to have two bash shell running just for convenience.
If it does, how to set it up? Anything different from setting up Putty?
Thanks!

How to copy files from windows to linux (cross platform)?

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

How can i start some file manager in Powershell under SSH?

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.

FTP and execute shell scripts on windows from linux

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.

SSH connection with NAnt script

Is there a way to make an ssh connection from a windows command line to a Linux machine not using putty?
The Idea is to be able to use NAnt to issue linux commands on the target Linux machine.
Yes. The Cygwin ssh client works from the Windows command line.
If you're looking to avoid any 3rd party tool besides nant, then no.

Resources