Questions tagged [ssh]

Secure Shell - a network protocol for exchanging data throughout secure channel with most common uses of remote command execution (remote shell/console) and file transfer. Use this tag for programs and scripts using the SSH protocol, including the associated SCP and SFTP file-transfer mechanisms.

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
290 views

Command-line ssh address book app

I'm trying to learn a bit about Golang and decided to try out building an SSH address book command-line app. I used a YAML library to serialize and store data in a configuration file. The app has a ...
Inondle's user avatar
  • 141
3 votes
0 answers
555 views

Tauri/Rust small program to upload files with use of threads and openssh

First time I'm using Rust in one of my programs and I feel a lot can be improved. I don't have any colleagues / friends that already used Rust so this is the only way to get some validation that it's ...
Jeroen Claessens's user avatar
3 votes
0 answers
89 views

Bash script to mirror XWindow to remote SSH host

The source code within this question aims to provide a short-cut for mirroring a local XWindow (or session) to a remote host via SSH port forwarding, such as: ...
S0AndS0's user avatar
  • 976
2 votes
0 answers
85 views

Transfer data from a PLC on remote server into MQTT

Newbie here. I want to write a code that can open an SSH Tunnel for a remote server, then read out the data from a PLC and transfers it in JSON format via MQTT. This is my code, but I don't think this ...
mijki's user avatar
  • 21
2 votes
0 answers
43 views

Bash script to scp specific, most-recent files from remote server

I'm writing a helper script that I wish to be able to share with my co-workers. We all work using macOS Mojave, but all have their own shell configurations. For example, I actually use ZSH and bash 5....
dylanjm's user avatar
  • 225
2 votes
0 answers
454 views

SSH log in to multiple devices, save local config and transfer to backup server

I don't really know the best way to deal with long lines. The comments may be a little excessive. To me it seems like too much code for how "little" is actually done. I'm not that experienced and want ...
Lele's user avatar
  • 21
2 votes
0 answers
484 views

Concurrent SSH session pool

In my application I need to perform several SSH commands from Windows to a Linux machine. Since I need to reduce as much as possible the SSH calls overhead and also limit the number of concurrent ...
digEmAll's user avatar
  • 121
1 vote
0 answers
129 views

Python Local/Remote File Manager & RSync Terminal User Interface (TUI)

I have been working on a Python Curses terminal user interface for RSync for a little while now. I recently visited code review and recieved some help with cleaning up the code to make it more ...
Kriffer's user avatar
  • 43
1 vote
0 answers
38 views

Wrap an ssh2 connection neatly and pass commands

I want to structure this better but don't think I'm handling results well. I'm used to python and I think my flow is way off. Is this bad design? Should my results be Result<String, Error>? I'm ...
shaciaran's user avatar
1 vote
0 answers
752 views

SSH Port Forwarding - golang

I developed this small code to make my life easier when I work with remote machines over ssh tunnel crossing a bastion host. I would like to publich it so others could benefit/learn from it. So I ...
Kingindanord's user avatar
1 vote
0 answers
97 views

ssh key install

I wrote script to install public key of my system to remote host. I had tested the script it is working fine for me. script take data like IP password and ssh port form CVS file. I do not want to use ...
jay sonar's user avatar
1 vote
0 answers
916 views

Polling an SFTP server to list files in a directory

When is it better to instantiate the sftp client globally vs inside a function as shown below? What considerations favor one method over the other? For a long ...
trivial_tasks's user avatar
1 vote
0 answers
1k views

Generating ssh keys from asp.net core

I have started to create a console app, which I am testing locally on my mac. The idea is to generate an ssh key and structure the storage of these keys within the ...
SJC's user avatar
  • 241