Questions tagged [ssh]

SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Unix terminal flashes white on autocomplete

When I work with a terminal via ssh and press tab button my screen is flickering white. Is there a way to disable it? I connect to a Ubuntu server via putty. My shell is zsh but I have the same ...
SavaLione's user avatar
0 votes
1 answer
10 views

Run a snap package with X11 forwarding of the app using SSH connection and VcXsrv on windows

I'm trying to run a snap application using a ssh connection but I got some problems, here the steps: Run VcXsrv on Windows Open terminal and run following commands: . export DISPLAY=localhost:10.0 ...
Majico's user avatar
  • 101
1 vote
2 answers
48 views

Mass Update of SSH Keys

I recently upgraded our Master Server from Oracle Linux 8.8 to Oracle Linux 9.3. Unfortunately, on a lot of our systems we still use RSA keys for ssh authentication, and they are not working anymore ...
Lucas W's user avatar
  • 11
0 votes
0 answers
20 views

Give an user the permission to open an ssh tunnel with a specific port < 1024 (privileged port)

If you try to open a tunnel with a normal user with a port < 1024 with for example: ssh -L 127.0.0.1:1023:someip:someport user@host -N you can't because you get bind [127.0.0.1]:1023: Permission ...
res1's user avatar
  • 278
0 votes
0 answers
9 views

Cannot Pull From Artifactory Ever since Adding a New SSH Key to Github

This question is actually a problem my colleague at work is facing. She had an existing GPG key, but forgot the passphrase on the previous SSH key. Her previous SSH key pair was Ed25519, I gave them ...
Nickotine's user avatar
  • 467
0 votes
0 answers
25 views

Rsync link to remote server in bash script without password prompt

I have set up public key authentication on an Ubuntu (22.04) server. I can log in to the server via SSH without having to provide a password. I want to run a backup script on another machine (a ...
Bruce Button's user avatar
0 votes
2 answers
32 views

Is it possible to create multiple users on Linux with the same UID and GID, especially UID and GID 0?

The ArchWiki - rsnapshot page mentions creating multiple users with uid and gid set to 0 as a means of creating users that login remotely to perform backups. One thing you can do to mitigate the ...
vfclists's user avatar
  • 7,531
0 votes
0 answers
30 views

Getting password ssh prompt after broken connection

I have the pubkey installed on the server I want to connect, and it works like a charm most of the times. However, every time I close my computer without first closing the connection, once I try to ...
Alberto's user avatar
  • 101
0 votes
1 answer
16 views

Pass Enter key to dist-upgrade's prompt, running inside a GUI terminal on a remote machine, accessible henceforth only over SSH

I earlier had RDP access to a remote machine (a typical physical desktop PC) using which I launched a sudo apt dist-upgrade inside a GUI gnome-terminal. Since then I have lost the RDP connection and ...
lineage's user avatar
  • 113
2 votes
1 answer
119 views

Multi computer cron

I have many computers and I ssh between them. I have a single cron file, which I manually type after into each computer. And when I change this cron file, I have to manually ssh into each computer to ...
john-jones's user avatar
  • 1,736
1 vote
0 answers
36 views

SSH authentication

I am trying to make ssh on VM have an authentication before the user is connected to the session. Right now I have an Azure MFA app, that when the user authenticates, it shows a password. I want this ...
Tavleen Aneja's user avatar
0 votes
0 answers
28 views

Trying to connect to a SSH Server on WSL in the same network but the SSH connection is timing out

So I am trying to configure my Ubuntu 22 laptop to connect with my Windows 11 machine running WSL. It worked perfectly yesterday and I could visualize everything I wanted. But now I cannot connect. ...
MonkeySpades's user avatar
1 vote
1 answer
51 views

SSH hangs/disconnects unless using `-v` option

I have a raspberry pi setup. When connected over ethernet ssh sometimes hangs, but generally works. When connected over wifi ssh is extremely choppy (8/10 connections fail, if I connect it drops ...
scosman's user avatar
  • 111
0 votes
0 answers
14 views

I am trying to activate my Portal.service, but when checking it's always showing the status as activating<auto-restart>

~$ sudo systemctl status Portal.service ● Portal.service - Portal Loaded: loaded (/etc/systemd/system/Portal.service; enabled; vendorpreset: enabled) Active: activating (auto-restart) (Result: exit-...
Suganth's user avatar
1 vote
1 answer
37 views

zsh completion for cssh: complete hosts from /etc/hosts as well as ~/.ssh/config

my zsh completion file _cssh has this line, which completes hosts only from /etc/hosts: '*:userhostport: _alternative hosts:host:_hosts usersathosts:userathost:_user_at_host' how do I make it ...
Martin Vegter's user avatar
1 vote
0 answers
27 views

Can I Store the Output of FFmpeg to a Different PC?

I have a question about storing the output of a screen recording using FFmpeg. Currently, I want to use the: ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0 output.mp4 command to grab a ...
Justin's user avatar
  • 11
0 votes
0 answers
7 views

ssh : through router port forwards can mount sshfs but can't get a ssh terminal session

arch with openssh 9.7p1-1 ,sshfs 3.7.3-1 This fstab entry works just fine. [email protected]:/mnt/sda/srv /home/stephen/srv fuse.sshfs x-systemd.automount,x-systemd.requires=network-online.target,...
Stephen Boston's user avatar
1 vote
2 answers
56 views

pipe or redirect output from curl to ssh command

I'm pretty sure this isn't possible, but I have been wrong in the past. Basically, what I'd like to do is take the JSON output from a curl command and pipe it to jq for prettiness. Which works fine. ...
supradave's user avatar
-1 votes
0 answers
18 views

Not able to perform SFTP to another target server with same public key

I am trying to test the sftp connection to two target linux servers from the same USS source server. I had generated the public/private key pair in the source side and copied the public key to one ...
Brindha Sharadha's user avatar
0 votes
1 answer
45 views

How to use the scp command on two different servers without a password prompt?

I am trying to transfer files from one server to another using the scp command without having to enter a password. To this end I generated key files and copied them to each server's .ssh folder; but ...
Jay's user avatar
  • 1
0 votes
0 answers
32 views

Source server public key not getting copied to another target server

I am trying to access the two target Linux systems by copying the same id_rsa public key from my same USS source server where I generated it. I am able to copy the generated key to one target system ...
Brindha Sharadha's user avatar
0 votes
0 answers
16 views

local proxy port forward error with SSH: SSS_SSH_knownhostsProxy: connection refused

I am using redhat enterprise edition 8.9 where I am trying to connect to remote server via local proxy method: When I run the command in the shell: ssh 127.0.0.1 -p 35856 I get the below error: ...
Anisha goyal's user avatar
1 vote
1 answer
32 views

ssh is picking up other keys [closed]

ssh utility is adding keys and doing stuff with known_hosts, and I get this error: ubuntu@${addr}: Permission denied (publickey). I have this code: #!/usr/bin/env bash ssh-add -D ssh -vvv -i 'my.pem'...
Alexander Mills's user avatar
0 votes
1 answer
41 views

How to run `docker exec` with ssh command

Not a fun one - #!/usr/bin/env bash ssh -i 'my.pem' "ubuntu@${addr}" "docker exec -ti '$name' bash" I get this lame error: the input device is not a TTY with no context at all. ...
Alexander Mills's user avatar
0 votes
2 answers
45 views

Ssh Permission denied on EC2 Linux server (publickey)

Please I created 2 Ubuntu Linux EC2 instances(master and slave) when I tried to ssh from the master server to the slave I get the error Permission denied (publickey). Server Details ubuntu@ip-172-31-...
Godwin's user avatar
  • 1
0 votes
1 answer
35 views

Proper way to set up rsnapshot over ssh on multiple machines

I am using the answer in this post to part of my question: Proper way to set up rsnapshot over ssh However, this post is seven years old and also I have an additional question. I have the same ...
bpb's user avatar
  • 1
0 votes
0 answers
116 views

Getting error when i load SSH key "Load key "/root/.ssh/id_ed25519": error in libcrypto"

Long story short I have an SSH key pair that I am copying to a new machine from a shared drive whenever the machine starts but when I load in the keys I keep getting an error. There is no difference ...
no nein's user avatar
  • 101
0 votes
0 answers
46 views

How to bind a forwarded local port to 0.0.0.0 instead of 127.0.0.1? "Operation not permitted" when using GatewayPorts=yes

A (remote) SSH server remote runs a service on (remote) 127.0.0.1 port 20001. I want to make this service available locally via SSH port forwarding: ssh -vvv -4 -L 20001:127.0.0.1:20001 remote Port ...
finefoot's user avatar
  • 3,070
1 vote
3 answers
112 views

The proper way to backup

I want do regular, automated backups to a raspberry pi in my homenetwork. It is sufficient to do backups, when at home. Every singe guide I read on 'how to do automated backups' tells me to put a ...
grbll's user avatar
  • 35
0 votes
1 answer
53 views

Unable to SSH Login using kerberos

Setup I have some basic KDC setup at kerberos.domain.intranet (This is in my own Intranet DNS) I have another machine at xux.domain.intranet (This being the target machine to which SSH) I setup the ...
Delfin's user avatar
  • 150
2 votes
2 answers
68 views

Does nftables allow port 22 or other ports by default?

I installed nftables on a new Debian 12 (on AWS EC2). I am connected to the instance (the external EC2 IP) over port 22/tcp. I mention EC2 because maybe they do weird tricks. I then installed nftables ...
CeSinge's user avatar
  • 23
0 votes
1 answer
35 views

What configuration is blocking local ssh connections to my server?

So I recently bought a Raspberry Pi to work on a small passion project with the RetroPie Debian-based image. I am now at the stage where I want to completely shield the server only allowing specific ...
Ress's user avatar
  • 1
0 votes
1 answer
24 views

SSH option SecurityKeyProvider works from command line but not config file linux WSL--other options fine

I'm trying to ssh into my work server but this bug has been bugging me for a few months now. Every other option in my config file (housed at ~/.ssh/config) works fine, but for some reason ...
N3wU53r's user avatar
0 votes
0 answers
25 views

ssh jump host connection with target machine authentication via a private key

I need to connect to a target machine via ssh jump host. Authentication to target machine is done via a private key on jump host. A manual way will be made of 2 steps: ssh [email protected] ssh -i priv....
dmayilyan's user avatar
0 votes
0 answers
44 views

ssh client ignores identity settings on config file

Here my ~/.ssh/config file: # Identity for github work account Host github-work HostName github.com User git IdentityFile ~/.ssh/github-work IdentitiesOnly yes # Identity for gitlab ...
Jordi's user avatar
  • 325
0 votes
1 answer
38 views

ssh prompts for password when providing non-default key

I have a question about ssh public key authentication. I have generated on a RHEL 9 machine a key pair - protected by a password- as follows: ssh-keygen -f .ssh/key2 Then, I have copied the pub key ...
Francesco Marchioni's user avatar
1 vote
0 answers
30 views

SSH Display custom message at login if correct password but no public key

We're moving a server (running Ubuntu Server 23.10) from "password or public-key" auth to "public-key only". I'm looking for a way to make ssh auth behave like this: If public key ...
tbrugere's user avatar
  • 996
-4 votes
1 answer
49 views

Why is this iptables blocking the ssh to my virtual machine?

I have a virtual machine with kali running a ssh server, i want to block all traffic by ssh to this machine except from my own pc and to do it i have this iptables rules. ┌──(root㉿kali)-[/home/kali] └─...
openfm's user avatar
  • 1
0 votes
0 answers
18 views

Launching via Plasma shortcut removes ssh-agent's environment variables

Running Plasma 5.27.10 on Debian testing/trixie. An ssh-agent is launched via user service /usr/lib/systemd/user/ssh-agent.service and its socket is exposed in my session's environment variables. All ...
Tarmo's user avatar
  • 101
0 votes
0 answers
26 views

ssh to a machine via a cluster of Jumphost - host key verification fails

I have FQDN : jumphost.mycompany.com which is a load balancer that distributes the load between 3 different servers jumphost1.mycompany.com jumphost2.mycompany.com jumphost3.mycompany.com I want to ...
iclman's user avatar
  • 101
0 votes
0 answers
24 views

How to set ACL permissions for SSH_AUTH_SOCK in a RemoteCommand?

I'm trying to forward my SSH agent and then grant permissions to the SSH_AUTH socket. The permissions are for another user on the remote host. My ssh config: Host myhost Hostname 1.1.1.1 ...
dimid's user avatar
  • 627
0 votes
0 answers
16 views

ssh to TV and control dvd iso play

I would like SSH to a computer with a TV as its monitor and remotely control dvd.iso playing on the TV screen from the command line. Can I?
user1855805's user avatar
0 votes
0 answers
18 views

Connecting to a WIFI appliance from a script? [duplicate]

Sorry about the vague subject - this isn't about how to connect to WIFI, but about connecting to the access point from a command line, or rather in a script. I can do this manually with ssh, but there ...
j4nd3r53n's user avatar
  • 715
0 votes
0 answers
53 views

SSH connection failing on bitbucket pipeline, but working on local computer

From my local computer, I can ssh into my server without a password by doing: ssh [email protected] I then check /var/log/auth.log on the server to see what ssh key was used. I get something like ...
kellymandem's user avatar
0 votes
2 answers
139 views

Why is ssh-agent.service running, but when I use ssh-add I get an error connecting to the agent?

The ssh-agent service is enabled for the user and is running without errors. (status is active). But when I try to use ssh, I get the error Could not open a connection to your authentication agent.. I ...
Daniil Screpchenko's user avatar
0 votes
1 answer
70 views

Unable to access proftpd server via sftp: port 22

I'm trying to replace a proftp server because the old one was encrypted during installation and the passkey is lost. Old server works fine on ftp:21 and sftp:22/322 old server is on ubuntu 16.04.7 lts ...
user16605410's user avatar
1 vote
0 answers
30 views

SSH forwarding audio in Debian 12 KDE fails

(Several weeks ago, I posted this request-for-help on superuser.com, but didn't get any replies. Hence, I'm seeking help here.) SYSTEMS: X86_64 Debian 12 bookworm KDE AND Debian 11 bullseye KDE ...
wonder's user avatar
  • 11
0 votes
1 answer
37 views

What's the simplest way to convert between SSHFP hex and ssh-keygen SHA256 Base64?

I am trying to verify the SSH fingerprint of a GitLab server. Its published fingerprints are wrong, possibly from load balancing. VerifyHostKeyDNS=yes doesn't error but I don't trust not seeing ...
Daniel T's user avatar
  • 113
4 votes
1 answer
146 views

After changing the username, no SFTP login is possible anymore

I have SFTP server with many users connecting with different usernames. One user requested the name change. Since I thought that is pretty straightforward procedure, I did typical usermod --login ...
spaceman117X's user avatar
0 votes
1 answer
50 views

Windows X2Go using ssh config file

To connect to our servers we use X2Go. The setup is a little bit more sophisticated due to the use of a proxy. The proxy is setup properly and works when I connect via ssh in the powershell. I also ...
Simon T.'s user avatar

1
2 3 4 5
162