I have researched and only see answers on how to do this on windows, so here are my details.
I am using mac os X .. And I am connecting to a virtual server via VPN. My problem is I have files on the desktop of my mac that I need to get to the Virtual server on the VPN. How can this be accomplished. They are not on the same network, or IP range. I heard you should install a webserver onto the virtual server in order to accomplish this. Does anyone have experience with this or can provide any assistance would be greatly appreciated.
OS X includes the scp command that can be used to copy files to a virtual server assuming that it is a Linux system running SSH. For example, this terminal command will copy the file "my_file.txt" from the current directory to username's home directory on the server. The colon at the end of the command is important.
scp my_file.txt username#virtual.server.ip.address:
The scp and sftp instructions here apply to OS X as well as Linux.
https://help.ubuntu.com/community/SSH/TransferFiles
Related
I have a raspberry pi running Linux (Jessie) which takes pictures every hour and is supposed to upload it onto a windows server. I want to set up a password-less SSH access so that I can upload pictures from the raspberry pi to the windows using SCP. Most of the tutorials online deal with copying files from Linux to Linux environments or windows to Linux set-ups. How do I set up password-less access FROM Raspberry pi to Windows? Should I generate key pairs on windows or raspberry pi? I am also having confusion as to where does the public/private keys resides (windows server or Linux client)?
You may install Cygwin on the Windows side, then you will get the environment similar to Linux on Windows. The keys can be generated on the Linux side and copied to the Windows, location is the same as in the Linux (/.ssh).
There are several tutorials on Cygwin with private key authentication, like this one: https://dbaportal.eu/2015/03/06/setup-openssh-cygwin-for-public-key-authentication/
Note that you will probably have to set up proper access rights for .ssh directory in Windows. You may use chmod in the same way as on Linux, set 700 for .ssh directory and 600 for authorized_keys.
I am asked to send a text file from a computer from a windows machine to a linux machine,a raspberry pi model b to be exact . Knowing that they are on the same local network, what are the steps to do in order to enable such a manipulation?
Try pscp:
Download and run putty installer: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html, then in your windows terminal type:
Program Files( x86)\PuTTY\pscp.exe <path_to_file_to_be_copied> <user>#<ip_addres_of_your_raspberry>:<path>
Example:
pscp.exe C:\Users\SantaClaus\Desktop\someText.txt santaClaus#10.2.3.4:/home/santaClaus/
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 recently opened up a webserver in Amazon EC2. I managed to log in to the server using SSH with my mac. I also managed to install the EC2 API tool provided from Amazon. I have the XAMPP installation on my desktop. And I opened up a linux instance. I don't think I have a EBS(Elastic Block Store) mounted to the instance yet, I don't know how to do that. But How do copy the XAMPP installation file from my desktop to the server instance? Pls give me step-by-step instructions
I manage to solve my own question. I was using the scp protocol to transfer the XAMPP installation file. More info on this link: Secure Remote Logins and File Copying. This is the first time I used it, but you just type the command: scp -i ***.pem ec2-user#some_public_DNS /The/file/on/your/desktop. The file will then be transfer in a secure way to the remote server
I'm curious as to why you'd try to put XAMPP on an EC2 instance instead of simply using your system's package management system (e.g., yum, apt-get) to install what you need. This just seems like trying to hammer nails with the back of a screwdriver.