General :: Copying Files From Remote Server To Local?

Jan 26, 2011

I have a problem while copying files from a remote computer to my local one using the scp command. I am sure that I am using it correctly, please check it below:
---
blah@blah.com:~/g4work> scp blah2@blah2.com:IndirectMethod_Spher...s/H_1.mac.root .
---
What I get in return (instead of the statement saying 100% of file copied) is:
---
On this machine the G4SYSTEM=Linux-g++
---

The interesting point is that the above returned statement is one of the Environment variables set on both the machines that are necessary to work with a toolkit called Geant4. Here is what I get when I type 'printenv | grep G4' just to show you (note the statement in bold):
---
G4LEVELGAMMADATA=/home/blah/geant4/geant4.9.3.p02/data/PhotonEvaporation2.0
G4INSTALL=/home/blah/geant4/geant4.9.3.p02
G4LEDATA=/home/blah/geant4/geant4.9.3.p02/data/G4EMLOW6.9
G4NEUTRONHPDATA=/home/blah/geant4/geant4.9.3.p02/data/G4NDL3.13
G4VIS_BUILD_OPENGLX_DRIVER=1
G4RADIOACTIVEDATA=/home/blah/geant4/geant4.9.3.p02/data/RadioactiveDecay3.2
G4ABLADATA=/home/blah/geant4/geant4.9.3.p02/data/G4ABLA3.0
G4LIB=/home/blah/geant4/geant4.9.3.p02/lib
G4VIS_BUILD_RAYTRACERX_DRIVER=1
G4LIB_BUILD_SHARED=1
G4VIS_USE_OPENGLX=1
G4UI_USE_TCSH=1
G4VIS_USE_RAYTRACERX=1
G4REALSURFACEDATA=/home/blah/geant4/geant4.9.3.p02/data/RealSurface1.0
G4SYSTEM=Linux-g++
G4WORKDIR=/home/blah/g4work
---
The other thing that I would like to mention is that these Geant4 Env. Variables are loaded each time a new (bash) shell is started as a result of the bash login script.

View 6 Replies


ADVERTISEMENT

General :: Prevent SCP From Copying Local Files?

May 17, 2010

I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.

View 1 Replies View Related

General :: Scp Error While Copying Files Between Two Remote Computers

Jul 28, 2010

iam trying to scp files between two remote computers, i get the following error:

Host key verification failed.
lost connection

What i am trying to do is : scp u1@ip1:/source_path u2@op2:/destination_path

I am able to ssh into both machines fine, so i know that works. I tried google for this but couldn't make much of the results.

View 5 Replies View Related

General :: Transfer Files From Remote To Local Machine Using SSH?

Jun 28, 2011

I have a Ubuntu server hosted on Amazon EC2. I need to create an automated backup scheme so I created another Ubuntu instance on my local network which is hosted in a virtual environment. I managed to transfer the necessary files between 2 machines on the same network using the rsync command:

rsync -azvv -e ssh /home/path/folder1/ remoteuser@remotehost.remotedomain:/home/path/folder2

How can I do the same thing but transferring files from my Amazon server to my local server? Is there a way I can achieve this with port forwarding, or by VPN, or anything else? It doesn't have to be rsync. If you know about a better method, kindly let me know.

View 2 Replies View Related

General :: Playing Music From Remote Server On Local Machine Via SSH?

Oct 26, 2010

I recently purchased a linux VPS from [URL] just to learn and play around with. I currently ssh into the machine via Putty from various Windows boxes. Is there anyway to throw some mp3s on the remote server and then have them play locally? Server is currently running Ubuntu Server 10.04.1.

View 4 Replies View Related

General :: Copying Files From Current To New Server?

Oct 9, 2009

I'm trying to copy files from my current server to a new server. Both servers have SSH installed. These are the commands I'm using. However I'm getting connection refused. I did a google search and found out that maybe the reason of this error could be due to the fact that my current server doesn't have SSH. However I use SSH often on my current server so I can say that it has SSH for sure.

OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to IP_OF_CURSERVER [IP_OF_CURSERVER] port 22.
debug1: connect to address IP_OF_CURSERVER port 22: Connection refused
ssh: connect to host IP_OF_CURSERVER port 22: Connection refused

View 4 Replies View Related

General :: Copying Bulk Files From One Server To Another

Sep 30, 2010

I need to copy a large number of files, it comes to 1 lakh from one server to another. When I tried various commands using scp , ftp etc. It is saying "Arg list too long". In which way can we copy all the files. The Two servers are under Linux.

View 4 Replies View Related

General :: Make User In Remote LDAP Server To Be Used To Authenticate Local System?

May 13, 2010

How can I make the user in remote LDAP server to be used to authenticate Local Linux server ?

View 5 Replies View Related

Ubuntu :: Copying File To A Remote Ftp Server With Bash

Jan 10, 2011

I'm hoping to set up a cron job that takes a file and copies it to a remote password protected FTP server. I've got a command that formats the file with the correct name and I've put it in the anacron file in /etc/cron.d (which I think is right, haven't tested it yet).I'm not sure how to copy the file to a remote server though. I do actually have the ftp server bookmarked in my places menu. So is there a simple way of suppling a file path that will put it straight into that folder? The only problem I can see with this is that the connection won't be open continuously, so would need to be re-opened when needed (I could presumably save the password in the keyring so that I don't need to be there to type it in).

Or maybe set up a cron job that connects to and mounts the ftp server a minute before it has to copy the file over?

View 9 Replies View Related

Server :: Collecting Email From Remote POP3 Server And Delivery To Local Users?

Jul 12, 2011

I am having problem to collecting email from remote POP3 (all the emails for a domain is stored here) and distribute it after collecting to several users defined to Linux server. I have install postfix in Linux server for email distribution.

View 3 Replies View Related

Server :: Redirect Local DNS Query To Remote DNS Server On Non Standard Port?

Feb 19, 2010

The issue is that my CentOS workstation is in a vlan from where the Intranet's DNS servers are unreachable. For browsing the web there is an ISA proxy server, which I presume resolves DNS for my firefox. However, wget, host, ping and aria2c fail to get any sort of DNS resolution since they're being run from command line.I have exported HTTP_PROXY value, which provides me internet access on console, but,only when I connect using IP address. It fails on name resolution.

My question is:May I redirect the DNS queries to my home PC which would be running a DNS server on a non standard port?I was thinking of putting nameserver 127.0.0.1 in /etc/resolv.conf and then put iptables rule to redirect 127.0.0.1:53 UDP to a.public.ip.address:3535 UDP..I don't know if I am shooting blanks or what, I am not very much aware of this kind of setup.My main need is to provide DNS resolution to console apps.I want to utilize my company's idle bandwidth for bulk downloads, so, using proxy, SSH tunneling through my Home PC is out of question.

View 8 Replies View Related

General :: Upload Local Changed Files To FTP Server?

Aug 23, 2011

I use a PHP IDE that has no built-in ability to upload a project to a site. So, I'm looking for common easy to use tool for Linux that would able to upload modified documents to the server instead of uploading of the whole site. I also accept shell scripts that would be able to do this.

View 1 Replies View Related

Server :: Local And Remote Paths On .htaccess?

Oct 15, 2010

As many developers probably do, I have a Windows based machine on which I run XAMPP locally to test my code and a Linux machine with Fedora as my remote server.As I sometimes use .htaccess as a way to authenticate some parts of the website, I end up having two .htaccess files: one with the local path (something line D:My_Webs) and one with my remote path (something like /var/www/html/) to the password file.I have searched high and low, but I cannot seem to find any trick so that I only have to maintain one version of the .htaccess file which can work on both Linux and on Windows machines.

View 6 Replies View Related

Ubuntu :: Mirror Remote Server To Local Folder?

Aug 27, 2010

I have a remote drive mounted on my system(ubuntu 10.04 x64), and i have the contents of that drive backed up to dropbox. the problem is, if i unmount the drive, the files disappear from dropbox. is there a way to mirror the contents of the network drive to a localfolder(preferably in such a way that all changes and file deletions are changed on the local folder instantly, but unmounting doesn't delete it all)? It looks like rsync would work, but im not sure how to make it work.

View 2 Replies View Related

Ubuntu Servers :: SSH Server Connection OK For Local But Not For Remote Machine

Aug 14, 2010

I am having trouble to make my SSH server working with remote machine.

Code:
telnet 192.168.1.102 22

PHP Code:

[Code].....

View 9 Replies View Related

Applications :: Create Local Mirror Of Remote Server Without Altering It?

Jul 29, 2009

I'm new here and hope to profit from your immense linux knowledge and of course to share my own experience where I can.

I'm in a student organization and we use a file server that runs linux. I can log in through ssh and copy using scp using login and password (no rsa/dsa keys because most users are windows users using winSCP and they're lacking in computer knowledge so we don't require them to mess around with keys)

However, I don't have network access everywhere, so I'd like to make a copy on my laptop harddisk of some of the folders I use most frequently. Note that I don't need it to copy files from my pc back to the remote server so I don't need two-way sync. Deleting the local copy every time and downloading a new full copy is not an option as we are talking about several gigabytes and the download speed is limited. Normally I would use Unison, however, this requires unison to be installed on both pc's and I can't install any software on the file server so this is not an option.

Any ideas on how to achieve this? I'm reasonable knowledgable about linux so I don't mind tinkering with some config files and using command line applications.

View 1 Replies View Related

General :: Konqueror Updates To Local Files / Executing Local Binaries?

Dec 9, 2010

One of Konqueror's unique features is that i can name a local process as the action in a form. When i submit that form, the local process is executed. Very helpful for certain offline tasks. What would make it even better is if i could find a way to pass some data to that local process from the html page. This could be the content of a hidden input item, etc. Alternatively, if there is a way for Konqueror to create or update a local file with data from the html page, that would acheive the same end.

View 1 Replies View Related

Ubuntu :: Multi Users Accessing A Remote Server On Local Network

Jul 24, 2010

I would like to experiment a "green" idea of virtual desktop where multiple users are served by a single powerful machine.

I have a server running 24/7. The monitor of this machine is turned off most of the time and the OS is on the login screen.

Other users, in the same local network, use less powerful machines, which could be a thin client or an old Pentium 3 machine. They access their accounts remotely and work with the GUI as if they were sitting in front of the server. Each user sees their own desktop (different themes, screen resolution, etc.). And of course it can happen that several users could log in at the same time.

The usage is modest: mostly web browsing and the usual default applications (office, wine, gimp, etc.). In particular no games or any demanding applications. The users want to use their desktop in graphical mode only.

Question: How do we call this way of using a server? Is it possible with Ubuntu? And how to implement it?

View 3 Replies View Related

Ubuntu Servers :: Setting Up Office With 1 Server / 1 Remote / 1 Local Client

Sep 22, 2010

I have a fast computer in my office and I want the person using the slow computer in the same office to boot up and see the login window (gdm) and log-in from there into the fast computer and be able to use their session on the fast computer the same time I am locally logged in to the fast computer as a different user and session.Is this best done through XDMCP? Where is a good tutorial on how to set this up?

View 9 Replies View Related

Fedora Servers :: Copying Log Files From Server Using Ssh?

Aug 12, 2010

I have a server with RedHat distro which stores and updates someg files and second computer with Windows 7 on it. I must configure both machines so one can get those files from server to Win7 machine using ssh. But I have no idea how to do it.

View 3 Replies View Related

Server :: Right User For Copying Files Into /var/www/virtual?

Mar 10, 2011

i would like to copy all files from my server001 (/var/www/vhosts/*/httpdocs/) to my server002 (/var/www/virtual/*/htdocs/) i would do it via rsync... but i dont want to do it as root! what would be the right user with which I should login myself via rsync? www-data? its the group of each domain-folder...

Quote:

server002:/var/www/virtual# ls -lh
insgesamt 4,0K
drwxrwx--- 10 vu2001 www-data 4,0K 9. Mär 09:58 domain.com
server002:/var/www/virtual#

but the files inside htdocs are only accessable for the user!

Code:

server002:/var/www/virtual/domain.com/htdocs# ls -lh | grep index.php
-rwxr-xr-x 1 vu2001 vu2001 397 24. Feb 23:30 index.php
server002:/var/www/virtual/domain.com/htdocs#
server002 will be the backup-server if the server001 is down!

View 3 Replies View Related

Programming :: Copying Multiple AVI Files To NAS Server

May 18, 2009

I am working with DM355 target board. Here we record. The video coming from IP cameras. Now I have to write c program for copying. The recorded avi files with date and time to NAS server using scp. I wrote a script to copy single file to NAS server.

#!/bin/bash
DATE=$(date +%Y%m%d_%H_%M_%S)
mv Camera1.avi Camera1_$DATE.avi
scp Camera1_$DATE.avi root@192.168.1.4:/root/test/
mv Camera1_$DATE.avi Camera1.av

But I have to write c program for copying multiple avi files with Date and Time to NAS server.

View 5 Replies View Related

General :: Why Can't 'scp' From Remote To Local Host

May 31, 2011

I am having difficulty sending files from a remote machine to local one using

Code:
scp
. It is working the other way however. local > remote. I am using the verbose options

[code]....

View 3 Replies View Related

General :: Write A Shell Script Which Can Ready Content Of The Folder And Place Files On Remote FTP Server?

May 9, 2011

I need to write a shell script which can ready content of the folder and place files on remote FTP server. I need to make sure that a file that is already placed on remote FTP server is not attempted second time. The file names will be something like Records-2011-05-09. The files will be generated by MySQL every hour.

View 7 Replies View Related

General :: FTP From Remote Host To Local System?

Sep 27, 2010

I'm using Windows XP. I'm connecting to a UNIX box using putty SHH(ksh). Now I want to copy a text file present in remote host to my local system.

View 5 Replies View Related

General :: Redirect Output From Remote To Local?

Mar 29, 2011

I'm doing some commands on a remote server (using ssh to log on to the remote server, did a ssh key swap), how do i redirect the output of a command back to the local server ?the person who helps me out is my HERO i'm really stuck on this and it would bring me a lot further if i get this to work

View 14 Replies View Related

General :: Sync Local And Remote Directories Using Rsync?

Jul 14, 2010

I have two linux box that i would like to keep in sync. I see option -avz syncs the remote with local but new local files are not pushed.

View 2 Replies View Related

General :: Transfer File From Local Mac To Remote Machine

Aug 12, 2010

How do you transfer a file from a local Mac to a remote Linux machine

View 5 Replies View Related

General :: Ssh Login Without Password From Local To Remote And Further To Another Remove?

Apr 15, 2011

I know I can ssh login without password from a local to a remote. My question is how I can ssh without password from the remote to another remote. Say, I have three machines: A, B, C where A is the local machine. I use the same private/public key pair for all the login. What I can do are:

1. ssh from A to B.

2. ssh from A to C.

3. If I am sitting in the computer B (or B is local), then I can ssh from B to C.

What I am not able to do is:

After I ssh from A to B, I cannot ssh from the B to C. When I try to ssh from B to C, it asks me a passphrase.

View 1 Replies View Related

General :: Move A Process From One Shell To Another (local To Remote)?

Jan 28, 2010

Is is possible to move a process from one shell to another (local to remote)

e.g.

if
my_code.sh &
#jobs
[1]- Running my_code.sh &

was started on one remote shell is it possible to move it to the foreground on another shell as root or another user?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved