Working with files, programs, etc., that are stored on a different machine

learn more… | top users | synonyms

4
votes
2answers
8k views

“Permission denied, try again” while transferring files with scp

I have two servers (A and B) and my local machine. I'm trying to transfer a file from server A to server B. From server A: scp ./backup.tar user@server.b:/home/public/ Permission denied, please try ...
2
votes
1answer
838 views

Need small and light stand-alone one-file ftpd server

Can somebody suggest a small one-.c-file ftpd server, so I can run it on any port and it would accept ftp upload with any l/p on that port and put a file into a folder where it runs? No config files ...
1
vote
1answer
495 views

Copy/Backup all files except the most recent through scp

I have a program that is running on multiple machines and which is writing the results to ~/data/machine_name/, each time the results file exceeds 1MB the program moves on and write to a new file. ...
1
vote
1answer
173 views

Do we need to chmod a shell script before it can be rsh

I tried to rsh a shell script from OpenVms to a Red Hat linux. It seems that it is not executed. I created the shell script in OpenVms and Ftp it to the linux. I then ls -la the folder in linux: ...
2
votes
2answers
161 views

How to send a prompt to a remote machine like the “you have mail”, ie not using wall

I am currently using wall to show a message on a remote machine when an activity is started and finished. But this is intrusive, as it will write across an editor they might have open etc. What I ...
1
vote
1answer
338 views

How to install a database dump via Shell Script?

I have a Mysql database dump. I want to install it with Hudson via a Shell Script to an external Linux machine. How can you take a Mysql script and run it inside a database on other machine? I know I ...
4
votes
3answers
3k views

How do I only copy files to a remote folder on another server that don't already exist in the folder… from the command line in linux?

I have two folders on two different servers. I want to sync files between A and B, however, I only want to copy files that don't already exist in folder B because these files are huge. I don't care ...
2
votes
2answers
440 views

Run ssh as a command of another ssh command

I want to run a program on a machine that I have ssh access to from a gateway machine that I can access with ssh too. When I want to run an mpi program on the target machine T, I access to the ...
4
votes
2answers
424 views

Run mpirun and ssh-add remotely on the same session

I am developing a program that is running on multiple machines using MPI. I have machines on Amazon EC2 where I can start mpirun from one of them (the master). Everything works as I expect if I ssh ...
4
votes
1answer
3k views

dot file not sourced when running a command via ssh

When I run my program interactively, it works fine: ssh somehost $ ~/some/path/somescript.py When I run my program over ssh directly, it doesn't work. The variable PYTHONPATH is not set, because ...
4
votes
2answers
144 views

How can I give a very stripped down login for viewing logs?

I have various log files in folders on an RHEL 5 system: /var/log/syslog-ng/A/ /var/log/syslog-ng/B/ /var/log/syslog-ng/C/ I would like to be able to give certain users the rights to view/tail (but ...
3
votes
2answers
1k views

Debian VNC (Remote Desktop) only allowing first connection, then turns off

Basically if I reboot the machine, I can vnc into it (using ultra vnc) but I can only do it once. It seems that the vnc daemon stops working after the first remote desktop session is closed. I have to ...
9
votes
7answers
10k views

How do I work with GUI tools over a remote server?

I have an Ubuntu server running on EC2 (which I didn't install myself, just picked up an AMI). So far I'm using putty to work with it, but I am wondering how to work on it with GUI tools (I'm not ...
3
votes
1answer
675 views

Set visible directories for SFTP access?

I am setting up SFTP access to one of my machines running Linux with the Dropbear SSH server. When I SFTP onto the machine remotely, I can see the entire filesystem on it, even if I might not have ...
8
votes
2answers
2k views

How to efficiently use 3D via a remote connection?

I have one weak PC (client) but with acceptable 3D performance, and one strong PC (server) which should be capable of running an application using OpenGL twice, i.e. once locally and once remotely for ...
8
votes
2answers
8k views

How to debug the input from an input-device (/dev/input/event*)

I have a IR reciver that is using the imon-driver and i would like to get it working with the kernel. Right now half of the keys on the remote (image) works, but an all important think like the ...
6
votes
2answers
675 views

Linux -> linux remote X login/desktop

What are the (best) solutions for remote desktop in linux? Ideally I'd like to be able to be able to log in to a remote X (KDE) session without even logging into my local machine. Maybe if I could ...
8
votes
5answers
5k views

Easiest way to duplicate directory over FTP

I want to duplicate a directory on an FTP server I'm connected to from my Mac via the command-line Let's say I have file. I want to have files2 with all of file's subdirectories and files, in the ...
9
votes
2answers
8k views

Starting firefox on a remote host (over ssh) opens a new window locally: what is happening?

I have never noticed this behaviour before, and am a little confused as to what is happening. I have a local copy of firefox running, then ssh (ssh -X <url>) into a remote server and start a ...
3
votes
2answers
534 views

Accessing a remote OSX system from OSX, Linux, Windows

Is it possible to connect to a remote OSX machine using OSX, Linux or Windows in a way similar to Windows' remote desktop?
13
votes
6answers
5k views

How do I copy all files and directories except certain ones over ssh?

Using the Linux command line, I use the scp command to copy up all the files and folders from a certain directory. However, I don't like to consume wasted bandwidth for copying up things I rarely ...