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

learn more… | top users | synonyms

-1
votes
2answers
89 views

cannot launch konsole from xterm

I installed lxde & kde (along with konsole). now I launch xterm from a Windows host using Xlaunch(Xming) which works fine but when I want to launch konsole(my preferred shell) I get this error: :~...
0
votes
1answer
807 views

Syntax error: word unexpected (expecting “)”) when running remotely but no problem running locally

I've read plenty of discussions on various possibilities why such a thing can happen however all are about some missing library on the system where the binaries are deployed. This is not my case. I ...
1
vote
2answers
38 views

How to pull single file from multiple similar named file using sftp

I want to pull a single file from multiple similar named file using sftp. Eg. if my remote server is having below files, file_0722_005.dat file_0722_020.dat file_0722_033.dat file_0722_0022.dat I ...
1
vote
1answer
98 views

tail file from remote server and nslookup on local

I need a script for resolve hosts. For now I run this script on local machine for i in `tail -F access.log | awk '{print $8}' | awk '{gsub("http://|/.*","")}2' | awk '{gsub("http://|:.*","")}1' | ...
3
votes
4answers
5k views

How to automatically mount remote directories on login / startup

Everytime I boot, I use sshfs to mount remote directories. I am thinking to put these short commands in my .bashrc, but that does not seem to be The Right Way™. What is the proper way to run sshfs on ...
8
votes
2answers
37k views

bash shell - ssh remote script capture output and exit code?

I wish to use shell to invoke a script on a remote server. I would like to capture the output of that script (its logging messages) and the exit code it returns. If I do this: ssh user@server /usr/...
0
votes
1answer
20 views

git retains remote information from a deleted repository

I cannot clone any repository anymore. $ git clone git@bitbucket.org:myaccount/myrep.git Cloning into 'myrep'... conq: repository does not exist. fatal: Could not read from remote repository. ...
5
votes
4answers
26k views

Make FreeRDP prompt user for username and password?

At the moment, I'm using the following command to start an FreeRDP session: $ sudo xfreerdp /v:farm.company.com /d:company.com \ /u:oshiro /p:oshiro_password /g:rds.company.com Works fine. ...
1
vote
0answers
24 views

Search multiple remote file systems at once?

Say that I've lost a particular file. I know part of the name, so I could use something like this to find it: sudo find / -iname "*filename*" ...except that I can't remember which device or server ...
11
votes
7answers
33k 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 ...
1
vote
1answer
28 views

run pm2 from remote shell script

I am trying to write a script which ssh into a bunch of my servers and runs some commands to start my app. One of the commands (pm2) always says pm2: command not found. This is how I'm attempting this:...
7
votes
3answers
614 views

Can vim edit a remote file as root?

I've found this question that explains how to edit a remote file with vim using: vim scp://user@myserver[:port]//path/to/file.txt Is it possible to do this as root (via sudo) on the remote host? ...
7
votes
1answer
4k views

Alternatives to xmove, xpra

A bit of background information: I'm dealing with a piece of software that is part of a larger system. Most pieces of the system have a background process that runs continually, and a GUI that can be ...
-1
votes
1answer
42 views

Is telnet/telnet-server a remote shell?

It is always said to use Secure Shell (SSH) instead of Telnet or rsh/rcp/rlogin, for security reason. SSH and rsh are both remote shells. I wonder if telnet is also a remote shell? If yes, why is it ...
1
vote
1answer
30 views

parallel file copy using tee unexpectedly slow

we're copying a large zfs snapshot (zfs send) from site-1 to site-2. site-1 and site-2 are remote, and are connected via IPsec (read: slow) on site-2, we need the data on two different zfs servers. ...
1
vote
0answers
18 views

Users in sshfs filesystem, or alternatives

I'm trying to use sshfs as a filesystem with encrypted communication. It mostly works, but I'm having some problems related to users/groups. Since I need any user to be able to access the whole ...
0
votes
2answers
1k views

Moving files from folder to folder on a remote server using SSH without downloading those to local computer

I have a remote Debian test server to which I connect via SSH (Putty client). I wanted to move a lot of files on a remote machine to another folder: remote: /mnt/a/ -> remote: /mnt/b/c/ RESULT@...
1
vote
0answers
18 views

How to set up multy-user xrdp server for 20 users that would force kill-all session created processes on disconnect?

I want to have an xrdp multy-user server that would allow 20 users to connect. I wish to kill-all session created processes (and terminate sesstion) on disconnect for each user. Is it possible with ...
0
votes
1answer
53 views

Is there a BASH protection on remote copy of root files?

I am trying to use a script to bring back log to the admin. This script is send and load via mussh on the remote machine #!/bin/bash scp files.log user@user:~/ (I have also tried with sudo scp ... ...
3
votes
1answer
283 views

Copy only file details (file name, size, time) from remote machine in unix

how can we copy only file details (filename, size, time) from a remote machine in Unix? For example: I have a directory (/opt/apache/…/webapps/Context) placed on a remote machine. Now I want to copy ...
1
vote
1answer
25 views

provide internet access to an isolated remote server

Say I have a server inside a dataware house. I can connect to it remotely from my PC but it does not have Internet access. Is it possible to configure the SSH connection or any other configuration in ...
0
votes
2answers
32 views

upload files from remote VM without graphic interface to google drive

I would like to upload a zipped folder to my google drive. The file is large and takes a long time to download to my local machine and even longer to upload it to drive. I was hoping to save some ...
-2
votes
1answer
42 views

View which users exist on a remote computer?

If I have the IP address of a computer running Linux is it possible to see which user accounts exist on that computer, without having to ssh into it first?
0
votes
1answer
52 views

reverse tunnel on a multi hops ssh tunnel

I'm a windows user, that needs to access his server at home using a double hop ssh tunnel. I've configured via putty, a socks tunnel on a 2 hops ssh connection using a dynamic port, based on this ...
1
vote
0answers
21 views

linux Remote GUI access from server

How can i get display of remote GUI ? I am using Ubuntu. What command lines should I use after ssh tunneling? i tried export DISPLAY=remote_host and tried running a CUDA,Open CV related program and ...
0
votes
1answer
28 views

remote connection config in terminator

I'm using terminator and would like it to start up pre-configured with remote connections established, I do achieve this by setting ssh user@host in the command = field in ~/.config/terminator/config ...
1
vote
0answers
17 views

Using KDE starter to start application via ssh

I would like to start VirtualBox on my server using the command ssh -X server virtualbox. This works well from a shell and asks for a login password as intended. I tried to create a KDE 4 "application ...
5
votes
3answers
421 views

How to recursively uncompress gz files on a remote host with limited commands?

I have a bunch of .jpg.gz files in a directory that I need to decompress. I know that the decompress command is: tar -xzvf FileNameHere.jpg.gz But is there a flag that you can recursively ...
0
votes
1answer
42 views

Filtering standard error output from remote BorgBackup repository

I want to filter standard error for a command that prints status information to standard error. In this case, Borg Backup. Specifically, the default output of borg check includes lines like: Checking ...
1
vote
1answer
54 views

How can I install PostgreSQL and PostGIS on Ubuntu 14.04 and enable remote access over the internet?

I would like to install PostgreSQL and PostGIS on my Ubuntu 14.04 virtual private server that is hosted in a remote datacenter. How can I enable remote access on them?
1
vote
3answers
318 views

the difference between '..' and “..” when I use ssh usr@ip 'pscp …'

My Server machine run Window,and it installed Cygwin. My Client machine run linux. In Clinent machine.I do this: [sikaiwei@login-1-2 v1.4]$ bash test.sh CHUN~19900405 sikaiwei@192.168.9.102:/ifs2/...
3
votes
1answer
24 views

Non-GUI based pin-entry for gpg

I'm in the process of remotely viewing and selecting hundreds of images, some of which are encrypted with a symmetric key. I log in to the remote desktop machine using ssh. The viewing is not fast, ...
1
vote
1answer
66 views

cannot get screen command to execute code containing DISPLAY=:0

I am trying to ssh into a remote machine and run a shell script, which opens a GUI. I want the GUI to open on the remote machine and remain open (so I am using DISPLAY=:0 nohup). I tried: ssh -t &...
1
vote
0answers
67 views

Problem with ssh connection [closed]

I need to connect to my computer via ssh. I have to use VPN, because the remote machine is my computer at my workplace. I have no problems with using VPN. So, I installed open ssh server from the ...
23
votes
3answers
35k views

How to dd a remote disk using SSH on local machine and save to a local disk

How can I create a backup of a remote disk using SSH on my local machine and save it to a local disk? I've tried the following: ssh hostname@my.ip.address "sudo dd if=/dev/sdX " | \ dd of=/home/...
0
votes
0answers
60 views

Executing remote code with arguments

Why this: ssh -i ~/.ssh/master.pem ec2-user@xx.xx.xx.xx 'bash -s' < `dirname $0`/elements/"$element" returns hostname.sh test-5000: No such file or directory when $element is not a just a single ...
2
votes
1answer
60 views

Ways to restrict remote user to only access a remote database

I want to be able to setup a remote user that can update a PostgreSQL database on a production server. I have two machines, one is a local server that I use as a command and control system, named ...
3
votes
2answers
4k views

Playing a remote movie on the remote computer

I have two computers (a desktop and a laptop) running linux connected to my local area network. I like to ssh from my laptop over to my desktop and run programs there, and sometimes listen to music on ...
1
vote
0answers
34 views

linux (ubuntu) graphical login from a remote computer before session is logged in

I have the ability to VNC into a remotely hosted ubuntu session with VNC after I've logged into that desktop session locally on that machine. My problem comes when I want to restart the computer (...
0
votes
0answers
66 views

Testing Remote SMTP Server Port

I am currently working in a lab environment to test a script for my production environment. My environment has several remote firewalls, all of which have an external mail Virtual IP (VIP). Our ...
2
votes
2answers
88 views

“ls” command stuck trying to list a stale mount point. How do you kill/stop it?

When working with remote filesystems such as sshfs or smbfs, it is command that they become stale due to network problems. To check if the mount is stale or not, I usually use the command ls to see if ...
0
votes
1answer
54 views

Setting up aliases with interactive ssh session [duplicate]

I need to keep ssh'ing into many-different Linux boxes (Ubuntu mostly) and every time I miss my basic aliases. Is there a way to setup aliases etc while opening an interactive ssh a machine without ...
9
votes
5answers
15k views

Open file from remote computer on host computer

I'm trying to edit a file from a remote computer connected via ssh. How can I open the remote file on my local computer to edit?
1
vote
2answers
45 views

How to treat remote txt file as stream?

A web service writes its output in a text file. I can fetch that log via: curl -u user:password -k https://log.my-app.com/log.2016-04-04.txt Yet this always only fetches a current "full" file even ...
0
votes
1answer
36 views

Is there a command-line application that combines SSH and SFTP? [duplicate]

When I'm working on some remote host via SSH, I often need to upload or download files. With my current setup, I need to switch to another terminal and conjure up rsync or sftp, which can be a pain ...
1
vote
1answer
88 views

How to show and operate a remote Linux desktop when SSH or any other remote service is unavailable? [closed]

The situation is as follows. On Monday, I need to showcase a program that needs the set-up development environment and hardware on my home system, at the university. The ISP are misbehaving and won't ...
0
votes
0answers
27 views

Email user temporary code access code when using ssh

I am looking for a way to create my own two factor authentication for ssh. After the user enters the correct login info I would like the terminal to send an email to the user that contains a code ...
0
votes
1answer
102 views

KRDC to Debian machine gives blue screen on reboot

I have two Debian machines, using XRDP on one and KRDC on the other to create an RDP connection between the two. This process works fine, until I reboot the server. Then, most often, after the server ...
0
votes
1answer
70 views

Access from unknown IP tracks to non-existent website

Just had a warning that my Gmail's been accessed from the following IP: 151.230.107.114 which routes to something called htc_frisbee.com , which doesn't appear to be a real website. Could this just be ...
1
vote
2answers
116 views

Cannot ssh without password [duplicate]

I have been trying to set up remote file copy without password between 2 Linux machines. I have appended my .ssh/id_rsa.pub from local to remote .ssh/authorized_keys. I have also set up correct file ...