I want to copy file from Ubuntu operating system into windows server without program,
i used ssh ,but it did not work.
Related
I have following machines available in my center and both has public access
192.100.0.1 (This runs in Ubuntu 18)
192.100.0.2 (This runs in Windows server 2016)
And I am trying to do following actions from Ubuntu machine to Windows machine using terminal
Copy file from /var/lib/proceed/sample.jar to C:Users/usertest/Documents // This is done Edited question
Then, I want to access windows terminal from my Ubuntu terminal and execute windows command, as below
cd C:\Users\plenty\test
java -jar sample.jar
Edit : I have done with copy the file as follows,
sshpass -p 'password' scp /var/lib/proceed/sample.jar usertest#192.100.0.2:C:/Users/usertest/Documents
Installed OpenSSH in windows server to communicate from Ubuntu.
How to execute windows commands from Ubuntu terminal?
Is there a way for me to view the contents of a file that is stored in my local windows machine into my linux putty session without copying the file into linux first?
I was thinking that I could ssh into windows and write a windows command to do it, but I'm not sure how to go about ssh'ing into my local windows machine in the first place.
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.
When I enter the putty shell, it gives me a default path [ec2-user#ip-10-79-141-32 ~]$. If the file I am trying to run is on the desktop, how do I be sure that I CD to the desktop? Also I am using linux to search for my windows files
Use a software Winscp. You can transfer files from Linux ENV to Windows ENV and wise-versa.
Here's my situation:
I have Machine A - Linux Box, and Machine B - Windows Box using Cygwin and OpenSSH.
Currently, I can ssh between the two machines, and run programs. There is this program that I need to run on the Windows Machine that will Control the Desktop (some mouse clicks and such).
I need to be able to ssh to the Windows Machine from my Linux machine (done already) and run the program. When I do this, the program just hangs up. I can see the program in the System Processes on Windows, however it is doing nothing. When I call the program on Cygwin on the Windows machine, it runs flawlessly.
My question:
Is there a way to run the executable program on the Windows Machine that controls its Desktop environment - run it remotely over SSH?
PS: I have tried on the Windows Machine to go to Services > Cygwin sshd > Log on > Allow Services to interact with desktop. However, when this is checked I can't get the Cygwin sshd service started.