Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

6 votes
1 answers
5745 views
How do I force x11vnc to stream lower quality?
I need to access a remote machine via a high latency, slow connection. It uses `x11vnc` and I want it to broadcast video in much lower quality than what's actually on the screen. First thing that comes to mind is to use less colours (e.g. 8 bit), but it can be anything, as long as the remote machine...
I need to access a remote machine via a high latency, slow connection. It uses x11vnc and I want it to broadcast video in much lower quality than what's actually on the screen. First thing that comes to mind is to use less colours (e.g. 8 bit), but it can be anything, as long as the remote machine is responsive even though it may, for example, show a large rich-colour desktop image (which I don't need to see anyway). Something [like this](https://superuser.com/questions/411058/setting-up-tightvnc-for-8-bit-pixels) , except for x11vnc. I will, however, appreciate keeping all the text sharp because, I work with the terminal. Here's what I tried: - use -notruecolor, found here http://www.karlrunge.com/x11vnc/x11vnc_opts.html - use -speeds dsl, found here https://ubuntuforums.org/showthread.php?t=1331555 - try setting 8 bit video using -rawfb, found here https://linux.die.net/man/1/x11vnc - enable -ncache 10 as per https://feeding.cloud.geek.nz/posts/high-latency-vnc-tech-support/ , but got [this issue](https://github.com/novnc/noVNC/issues/525) I'm using the built-in Screen Sharing app, which [seems to be almost the only option](http://web.archive.org/web/20180324015551/http://www.davidtheexpert.com/post.php?id=5) on Mac OS. I'm out of ideas. Please help.
ᴍᴇʜᴏᴠ (818 rep)
Jul 4, 2019, 12:25 PM • Last activity: Jul 1, 2025, 12:08 AM
1 votes
1 answers
138 views
Is it possible to remote control/screen share a specific virtual tty on KDE Plasma Wayland?
I am on KDE Plasma, Kwin (Wayland), Arch based distro (Endeavour). I use tty1, and want my friend to login to e.g. tty2, start up plasmashell, and then remote-in/stream specifically tty2 to e.g their laptop. This way I can use my computer in my tty1, and they can simultaneously e.g. watch videos/pla...
I am on KDE Plasma, Kwin (Wayland), Arch based distro (Endeavour). I use tty1, and want my friend to login to e.g. tty2, start up plasmashell, and then remote-in/stream specifically tty2 to e.g their laptop. This way I can use my computer in my tty1, and they can simultaneously e.g. watch videos/play games on their tty2 using my system's resources. Normally, I would try something with X servers or tigervnc perhaps, but that's not available on wayland systems. I tried moonlight/sunshine but that seems to stream the current display, and the control is shared (e.g. current on screen mouse always moves). Is this functionality even presently possible, and if so, how could one achieve this?
Gremious (111 rep)
Dec 24, 2024, 03:04 PM • Last activity: Dec 24, 2024, 03:56 PM
0 votes
0 answers
65 views
X11, IR receiver, map remote keys to media keycodes
I set up an IR receiver with ir-keytable to be able to control some audio player from an remote. It works but I had to use some weird available key codes which were correctly caught by keyboard custom shortcuts. More specific: My OS is Linux Mint XFCE. I use an USB IR receiver AIM IR605Q setup with...
I set up an IR receiver with ir-keytable to be able to control some audio player from an remote. It works but I had to use some weird available key codes which were correctly caught by keyboard custom shortcuts. More specific: My OS is Linux Mint XFCE. I use an USB IR receiver AIM IR605Q setup with ir-keytable. I mapped "play key" from remote with "KEY_PLAYPAUSE" key code and it works immediately. I think audio player get this standard media play/pause event from OS. If I try to map "next song key" from remote with "KEY_NEXT" (or "KEY_NEXTSONG") it never works. KEY_NEXT event never fires anything. But when I launch ir-keytable tests, the key-up is seen and "KEY_NEXT" code is properly shown. By the way, my laptop keyboard has a media key "next song" which works as expected. My work-around is to use "KEY_CLOSE" for instance instead of KEY_NEXT (in remote config file read by ir-keytable), and then with a custom keyboard shortcut, I catch it and launch audio client with option --next. This is not amazing, but it works... I looked for hours without success to understand why I can't use right key codes (these codes are less than 8 bits...). (By the way, I first tried LIRC with no more success.)
TanaT (1 rep)
Oct 21, 2024, 08:42 AM
0 votes
1 answers
213 views
Find MAC addresses of connected Wii Remotes
I want to connect one or more Wii remotes for reading their inputs. From the output of `cat /proc/bus/input/devices` I can extract data like `Sysfs` and the input `Handlers`. The `Handers` information I use to read from the corresponding input device (e.g. from `/dev/input/event17`). My question: ho...
I want to connect one or more Wii remotes for reading their inputs. From the output of cat /proc/bus/input/devices I can extract data like Sysfs and the input Handlers. The Handers information I use to read from the corresponding input device (e.g. from /dev/input/event17). My question: how can I get the corresponding MAC addresses? The output for one remote looks like:
: Bus=0005 Vendor=057e Product=0306 Version=0600
N: Name="Nintendo Wii Remote"
P: Phys=
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/bluetooth/hci0/hci0:3/0005:057E:0306.0009/input/input29
U: Uniq=
H: Handlers=kbd event17 js0 
B: PROP=0
B: EV=200003
B: KEY=10800000 0 1003000000000006 0 0 168000000000 0
B: FF=107030000 0
(Once a remote is inactive for a while I like to disconnect it via bluetoothctl disconnect {MAC-address}, but I need to distinguish between multiple remotes... And I don't want to disconnect the wrong remote...)
dmw64 (123 rep)
Sep 17, 2024, 01:55 PM • Last activity: Sep 17, 2024, 02:16 PM
4 votes
2 answers
523 views
Is it possible to transport any device over TCP?
Is it possible to transport whole device as in /dev entry over TCP? I'm talking about transporting e.g. joystick over TCP or mouse/rs232 port/framebuffer dev, soundcard dev, disks, etc. I'm mostly interested in input devices - keyboards, joysticks, tablets, mice, etc. in a more generic fashion than...
Is it possible to transport whole device as in /dev entry over TCP? I'm talking about transporting e.g. joystick over TCP or mouse/rs232 port/framebuffer dev, soundcard dev, disks, etc. I'm mostly interested in input devices - keyboards, joysticks, tablets, mice, etc. in a more generic fashion than specialized software for remote mice/keyboards.
Lapsio (1363 rep)
Dec 16, 2016, 12:37 PM • Last activity: Jan 26, 2024, 04:41 PM
0 votes
0 answers
188 views
Is possible restart a suspended system remotely?
For Ubuntu and Fedora based on GUI - both as remote clients - in a laptop (and even PC) is possible execute _remotely_ through either `SSH` or `Remmina` the following command: * `sleep 15 && systemctl suspend` The system can be restarted by opening the laptop's lid or pressing any key. Of course it...
For Ubuntu and Fedora based on GUI - both as remote clients - in a laptop (and even PC) is possible execute _remotely_ through either SSH or Remmina the following command: * sleep 15 && systemctl suspend The system can be restarted by opening the laptop's lid or pressing any key. Of course it must be accomplished locally and is practically mandatory do the login again. Until here all ok. Consider a special policy of the company/university/client to suspend the system but for a special case is not possible restart it locally. I did do a research and I found the rtcwake command but it works locally and is based on scheduled time. It is very useful **but** what about if is need it to restart the system in a specific time, prior of the scheduled time, while it is suspended and _remotely_?. Is possible restart the suspended system remotely?. And how?
Manuel Jordan (2108 rep)
Jan 9, 2024, 02:25 PM • Last activity: Jan 9, 2024, 02:40 PM
1 votes
3 answers
1114 views
I can't connect to x11vnc from different network
I am trying to connect from my laptop (with Linux Mint) to my remote desktop (with Linux Mint too) using VNC Viewer on my laptop and x11vnc on my desktop. I manage to connect if I am on the same network but if I try to connect to x11vnc from a different network, it doesn't work, staying stuck in "Co...
I am trying to connect from my laptop (with Linux Mint) to my remote desktop (with Linux Mint too) using VNC Viewer on my laptop and x11vnc on my desktop. I manage to connect if I am on the same network but if I try to connect to x11vnc from a different network, it doesn't work, staying stuck in "Connecting to 192.168.x.x" window. How could I solve? Thanks in advance!
Antonio Finocchiaro (11 rep)
Mar 21, 2023, 11:34 AM • Last activity: Mar 21, 2023, 01:14 PM
0 votes
2 answers
73 views
Controlling other Linux desktops from a central one
In our school lab, we have 20 computers and we want to set up Linux on them. Is it possible to control them (I mean tasks like updating, upgrading and so on) from a central computer? > *N.B:* [Zorin Grid][1] can do the task I want, it is currently in the development phase. Is anything like it availa...
In our school lab, we have 20 computers and we want to set up Linux on them. Is it possible to control them (I mean tasks like updating, upgrading and so on) from a central computer? > *N.B:* Zorin Grid can do the task I want, it is currently in the development phase. Is anything like it available? **Edit: Thanks to all for helping me. As I'm new to Linux and still learning about cli, I was unaware about the usage of ssh. ssh is just an awesome tool for remote access.**
Fahmid Bin Farooqui (3 rep)
Aug 28, 2022, 05:57 AM • Last activity: Aug 28, 2022, 08:38 AM
11 votes
2 answers
15319 views
Enable Gnome Screen Sharing via Commandline?
I set up a automated kickstart-installation for a "digital-signage-client" based on Fedora 30 (soon 32), now I want to add the enabling of the "Gnome Screen Sharing" to the installation to be able to get an actual visual feedback what is on the screen right now. I got this to work via the settings i...
I set up a automated kickstart-installation for a "digital-signage-client" based on Fedora 30 (soon 32), now I want to add the enabling of the "Gnome Screen Sharing" to the installation to be able to get an actual visual feedback what is on the screen right now. I got this to work via the settings in the GUI (Settings - Sharing - Screen Sharing) and I'm also able to set the "subsettings" via gesettings, e.g.
gsettings set org.gnome.desktop.remote-desktop.vnc view-only false
gsettings set org.gnome.desktop.remote-desktop.vnc auth-method 'password'
But I wasn't able to find the setting to enable the "Screen Sharing" itself. When I enable it via the GUI, I can see via systemctl status:
systemctl status | grep gnome-remote | grep -v grep
           │   │ ├─gnome-remote-desktop.service
           │   │ │ └─5572 /usr/libexec/gnome-remote-desktop-daemon
I tried to start this service and also the "daemon" directly with systemctl start, but it only results in Failed to start gnome-remote-desktop-daemon.service: Unit gnome-remote-desktop-daemon.service not found. There are two quite similar questions, but the seem outdated, because I don't have a schema "org.gnome.Vino": - https://unix.stackexchange.com/questions/389224/fedora-25-screen-sharing - https://unix.stackexchange.com/questions/73041/enable-remote-desktop-for-gnome-from-command-line So: How can I enable Gnome Screen Sharing via Commandline? Addition: --------- I’ve invested a lot of time to get this to work and could solve all but one problem. I now know, that I have to start the service as User, so my whole procedure is:
# Configuration
gsettings set org.gnome.desktop.remote-desktop.vnc auth-method 'password'
gsettings set org.gnome.desktop.remote-desktop.vnc view-only false
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/org/gnome/settings-daemon/plugins/sharing/gnome-remote-desktop/ enabled-connections "['$( grep UUID /etc/sysconfig/network-scripts/ifcfg-enp1s0 | cut -d= -f2)']"

# Start the Remote-Desktop-Service
systemctl start --user gnome-remote-desktop
I set it to “password” to not have someone to click on “accept”, “view-only” to “false” to be able to control it and set the UUID of my network-interface. Afterwards I can start the service correctly configured. So the last missing step is, that I’m not able to set the password via the commandline. I tried it like for vino and also with secret-tool, but it doesn’t work
gsettings set org.gnome.Vino vnc-password $(echo -n "myPassword"|base64)
secret-tool store --label='Label' {attribute} {value}
The problem with secret-tool is maybe, that the original entry in the Gnome keyring doesn't has a "attribute" and a "value", but those are mandatory for secret tool, so I can't reproduce the entry 1:1. So: Has someone an idea, how I can set the password for gnome-screen-sharing correctly via cli?
n-tchen (460 rep)
May 3, 2020, 10:30 AM • Last activity: Jul 9, 2022, 06:24 AM
1 votes
1 answers
574 views
Is it possible to create a ncat loop?
If you had two computers, wanting to control one from another using only ncat, without using telnet, ssh or other networking tools and only two shells, how could i go about that? I have successfully done so with three shells: 1. `cat | ncat 192.168.0.11` 2. `ncat -l | bash | ncat 192.168.0.16` 3. `n...
If you had two computers, wanting to control one from another using only ncat, without using telnet, ssh or other networking tools and only two shells, how could i go about that? I have successfully done so with three shells: 1. cat | ncat 192.168.0.11 2. ncat -l | bash | ncat 192.168.0.16 3. ncat -l Would it be possible to have one shell, where the input from one ncat would get displayed on the screen and the input in the shell would get piped into the other ncat? So far I have run into the following problems: 1. Before a ncat can start sending data, another ncat has to be listening for it, so I need a way to force a ncat to send data anyways. 2. If I did something like ncat -l | cat | ncat 192.168.0.11, the data would just get looped right back into the sending ncat (which I don't want), and wouldn't get displayed on the screen (which I want) and the input from the keyboard would just get ignored (which I also don't want). Maybe the first two problems could be solved by somehow redirecting the received data to stderr, but how would I capture KB input? It doesn't matter in which shell such a manouver would be possible, just that it works (fish, bash, zsh, anything is fine). This is not a serious scenario, I am just curious.
Tada Fireworks (11 rep)
Jun 28, 2022, 11:26 AM • Last activity: Jun 28, 2022, 05:26 PM
8 votes
2 answers
2409 views
Remote Mouse netcat (/dev/input/mice)
I was playing around with nc and I'm discovering how powerful and versatile this tool is. I was wondering how the file `/dev/input/mice` works because when I do `cat /dev/input/mice` you see the output, but I am not sure how to play with that. I have tried an `echo "blablabla" > /dev/input/mice` tho...
I was playing around with nc and I'm discovering how powerful and versatile this tool is. I was wondering how the file /dev/input/mice works because when I do cat /dev/input/mice you see the output, but I am not sure how to play with that. I have tried an echo "blablabla" > /dev/input/mice thought it was going to change my mouse coords but didn't do anything. I have seen in a post that you can have a remote mouse with netcat (not sure where I saw it) So, If I can take the write from /dev/input/mice in a remote PC to a server listening, writing it to his dev/input/mice ¿? My idea is: Server : nc -l -p 6000 > /dev/input/mice Client : nc 6000 < /dev/input/mice I think that that wouldn't work, so does anyone knows how to perform this and explain it a little bit¿? Thank you in advance
aDoN (756 rep)
Dec 16, 2014, 12:18 PM • Last activity: Jun 12, 2022, 02:01 PM
2 votes
1 answers
715 views
Transport keyboard/mouse events to a keyboard/mouse-less remote host
I want to send keyboard and mouse events from a small ARMv7 computer board to a remote one, which has no keyboard nor mouse. I'm planning to send these events on a locally implemented CAN bus. The controlling board has a touch screen that is detected as a touchpad. Support for a hardware keyboard is...
I want to send keyboard and mouse events from a small ARMv7 computer board to a remote one, which has no keyboard nor mouse. I'm planning to send these events on a locally implemented CAN bus. The controlling board has a touch screen that is detected as a touchpad. Support for a hardware keyboard is planned but typically there's none but a virtual keyboard. ------ **The context:** both boards shall be combined as a master/slave ensemble in a multimedia installation. The one that runs the multimedia platform (typically but not limited to [Kodi](http://kodi.tv/)) is the slave and has no keyboard, no mouse; it should receive its input events from the CAN bus. The master, controlling board is also connected to a small display, which plays the role of a keyboard and touchpad when the slave multimedia board is turned on. The cross-development toolchain is **Gentoo Linux**. ------ So I was wondering about the most straightforward way to send local keyboard and mouse (touchpad) events to the remote host, given that I'm no *kernel* developer. For instance I could figure out using netcat to send local keyboard/mouse events (from /dev/input/*) to a remote machine but as far as I understand there must be a keyboard and mouse plugged on the remote machine... unless there is some kind of dummy driver available that I could use on the remote end. (This said, I tried but it didn't work.) I'm not against kernel input module development, for instance, but I'd rather combine user space applications if possible or develop one if necessary. I would also prefer sending "raw" hardware events rather than assume there's a graphical engine such as Xorg or Wayland running on the remote board. Unless discouraged of course. So in the end I'm wondering if I should either - hack lirc and add CAN support, for instance or - hack linux input drivers. If there's a more hassle-free way, I'm all open.
user86969
Mar 24, 2015, 01:53 PM • Last activity: Sep 8, 2021, 07:40 AM
1 votes
1 answers
5462 views
ssh (remote console) between 2 computers from different private networks
I have two computers. Both of them are from different private networks. I'd like to connect from one of them to another (to program on it remotely). I attempted to use some remote desktop software ([teamviewer](http://teamviewer.com)). However, I encountered some issues with internet connection band...
I have two computers. Both of them are from different private networks. I'd like to connect from one of them to another (to program on it remotely). I attempted to use some remote desktop software ([teamviewer](http://teamviewer.com)) . However, I encountered some issues with internet connection bandwidth and screen resolution. So, I search some way to get just terminal access to remote computer. I'm a beginner in Linux. And as far as I understand the remote console access to other computer is obtaining via ssh (or telnet?). Unfortunately both of computers have private IP, so I unable to use SSH (reverse) tunneling. How to get remote terminal access to other computer in my case? (I'd prefer free solution)
Loom (4073 rep)
Nov 10, 2013, 06:05 PM • Last activity: Apr 5, 2021, 10:46 AM
1 votes
0 answers
77 views
RemoteControl on Samba AD?
I have an AD/DC, running on Zentyal 6.1 (wich is a web service of Samba 4.11 running on 18 iirc). But here is the thing: I have some users (we are on the same network, I can even reach them via ping, those users use Win7 and Win10 as OS) far away from me (more than 300 km) and due to the pandemic si...
I have an AD/DC, running on Zentyal 6.1 (wich is a web service of Samba 4.11 running on 18 iirc). But here is the thing: I have some users (we are on the same network, I can even reach them via ping, those users use Win7 and Win10 as OS) far away from me (more than 300 km) and due to the pandemic situation in my country I can't go over there and do what I need to do myself. I have a virtual PC running Win7 with RSAT so I can easily manage users and the GPOs with Windows mmc. There is a tab called **Remote controller** wich intrigue me, I have done some research and it seems like an old tool wich right now it's not usable. I know there are other tools as the RemoteControllerClient, Windows's RDP, VNCs servers and so on, but out of curiosity I would love to know if there is an integrated tool on AD/DC (running on **Samba!**) wich can be used in order to control (if not, at least to see the display) the session of a PC in my domain. Greetings
k.Cyborg (527 rep)
Mar 4, 2021, 08:40 PM
1 votes
2 answers
5412 views
Setting up LIRC in Debian 8
I have an infrared remote control which sends RC-5 signals and a computer with an IR receiver. The computer runs Debian 8 and I'm trying to set up LIRC so that I can control the music player daemon (MPD) with the remote. I have installed the `lirc` package and added a [configuration file for RC-5 si...
I have an infrared remote control which sends RC-5 signals and a computer with an IR receiver. The computer runs Debian 8 and I'm trying to set up LIRC so that I can control the music player daemon (MPD) with the remote. I have installed the lirc package and added a configuration file for RC-5 signals in /etc/lirc/lircd.conf.d/. The daemon seems to be active: $ systemctl status lirc.service ● lirc.service - LSB: Starts LIRC daemon. Loaded: loaded (/etc/init.d/lirc) Active: active (exited) since Sun 2016-01-31 20:18:17 CET; 32s ago Process: 408 ExecStart=/etc/init.d/lirc start (code=exited, status=0/SUCCESS) However, when I try to test the remote control with irw it fails: $ irw connect: No such file or directory According to man irw this seems to be cause by the absence of the socket file /var/run/lirc/lircd. The directory /var/run/lirc is empty. Any clues would be greatly appriciated.
August Karlstrom (1986 rep)
Jan 31, 2016, 07:51 PM • Last activity: Jan 10, 2021, 12:22 AM
5 votes
1 answers
1714 views
PulseAudio as remote source *and* sink?
I'm an amateur radio operator, and I use a software package called WSJT-X to connect my computer to my radio to operate it using what we call "digital modes". This works by sending audio signals from the speaker output of a USB sound card to my radio, and reading audio signals from the microphone in...
I'm an amateur radio operator, and I use a software package called WSJT-X to connect my computer to my radio to operate it using what we call "digital modes". This works by sending audio signals from the speaker output of a USB sound card to my radio, and reading audio signals from the microphone input on that same card. Because I am lazy, and my nice TV with the nice speakers and comfy couch is upstairs, but my computer and radio are downstairs, I'd like to run WSTJ-X from my laptop upstairs. I know that it's possible to use PulseAudio as a remote audio *sink*, but is it possible to use it as a remote *source* as well?
Aurelia Peters (153 rep)
Dec 13, 2020, 04:16 AM • Last activity: Dec 13, 2020, 04:33 AM
0 votes
1 answers
107 views
Remote script for multiple machines
I have multiple CentOS machines on a network and I need to be able to push one script at a time to all of the machines at once. I have looked at something like Atera, but that is for windows, is not free nor open source and it also has way too much functionality. If anyone can please give me a recom...
I have multiple CentOS machines on a network and I need to be able to push one script at a time to all of the machines at once. I have looked at something like Atera, but that is for windows, is not free nor open source and it also has way too much functionality. If anyone can please give me a recommendation on what software I can use for this.
Cyber (3 rep)
Nov 2, 2020, 04:55 PM • Last activity: Nov 2, 2020, 05:12 PM
0 votes
0 answers
497 views
Using Laptop to serve as monitor, keyboard and mouse to another PC
I have a laptop for my regular use which is compact and for regular day to day work. I need a much powerful PC so I buy/ assemble one. But I dont want to buy peripherals like Monitor, Keyboard and Mouse. I want to leverage my laptop for this. I have the right software/drivers installed on my laptop....
I have a laptop for my regular use which is compact and for regular day to day work. I need a much powerful PC so I buy/ assemble one. But I dont want to buy peripherals like Monitor, Keyboard and Mouse. I want to leverage my laptop for this. I have the right software/drivers installed on my laptop. On PC i connect usb cables as if I am connecting a USB monitor, Keyboard, Mouse. The other end i connect to my Laptop's USB port or any other port. May be there is a hub in between which mux the three usb cables to one. I run the right application on my Laptop Boot my new PC and this application on my laptop shows what a monitor would show i.e. the bootup sequence When I type anything on the application on my laptop it is registered on the PC. Thus I get the PC's bios with my laptop and configure it. I install the OS on the PC but interfacing with my this application on my laptop. Once OS is installed i can control the GUI of my PC from my laptop. Or keep it running but when I need to control it i can use this application and USB cables. This idea is like running a VM on my laptop which I do. Only thing is this VM application controls a hardware PC instead. Additionally a device which stands in between like for e.g. a dock which is connected to via usb/thunderbolt on one side but to laptop via ethernet on another and instead of connecting to monitor/keyboard/mouse it actually streams these to the laptop where the application interprets the data and shows it in its screen and takes inputs from keyboard/trackpad and pass them back to the doc which will send them back to the pc.
kaushik (1 rep)
Jul 14, 2020, 03:35 PM • Last activity: Jul 15, 2020, 11:03 AM
1 votes
0 answers
262 views
How to setup VLC to use Infrared remote control using LIRC
How can I setup VLC to use Infrared remote controls using LIRC ?
How can I setup VLC to use Infrared remote controls using LIRC ?
Abdelali Laaraje (111 rep)
May 24, 2020, 03:36 PM
1 votes
0 answers
337 views
How to SCP the output of a command from a remote server to another remote server?
I am connected to a remote machine ( server1 ). On server1 I want to make a script that is copying & renaming some files that have a specific size but to rename them only after they are successfully copied, from another remote machine ( server2 ). Example: Copy all the files with the size > 20k from...
I am connected to a remote machine ( server1 ). On server1 I want to make a script that is copying & renaming some files that have a specific size but to rename them only after they are successfully copied, from another remote machine ( server2 ). Example: Copy all the files with the size > 20k from a path from server2 to a path from server1 So I tried to make this script : #!/bin/bash #Connect on server2 ssh user@server2 #Go to the folder where the files I want to copy are located cd /folder1/folder2/folder3 #Copy the files find . -maxdepth 1 -size +20k | scp * user@server1: And that's where I got stuck. It seems that it doesn't get past the first line since it's asking me for a password to connect to server2. Also, I'm guessing that to rename them I need to do a for loop or something similar. Or is it another simpler way? Can someone give me a hint to follow the right path?:) I forgot to mention that on both servers I connect via public key Thanks in advance for the answers!
Teodor (55 rep)
May 6, 2020, 02:30 PM • Last activity: May 7, 2020, 06:02 AM
Showing page 1 of 20 total questions