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
1answer
14 views

SSH error: Cannot bind any address when using any other user than root in a container with Alpine Linux

I want to be able to start a Docker container as a user other than root and be able to ssh into it. When I start sshd as root I am able to log into it. When I switch it to start the container as ...
0
votes
1answer
17 views

How do i get the xprop output for my current window via ssh?

On my device A, i'm running x11 with dwm. I want to ssh into device A from device B and get the xprop output for the window i've focused on the device A. When I'm in the terminal on device a in dwm, ...
0
votes
0answers
18 views

How to execute commands from the host in a QEMU VM?

I am running a QEMU VM and am writing a benchmark script on the host. Therefore I would like to run a command inside the VM via ssh without breaking the script sequence. How would this be possible?
3
votes
1answer
210 views

"ssh" works but "sshpass" doesn't - how is this possible?

I configured key pairs for SSH connection. It works but of course asks for the passphrase. ssh user1@10.7.175.143 So now I try to login with sshpass which I have installed. I tried with -p property ...
0
votes
0answers
18 views

How do I run ssh commands under sudo with x11-openssh-askpass installed, keyfile based authentication?

I'm trying to run a command (sudo -t snap-sync -c root -r [remote device address] -u [remote device's btrfs storage device]) using the snap-sync package. However since I have x11-ssh-askpass and ...
0
votes
0answers
17 views

SSH X11Forwarding: apps display on the server instead of the client

After I login to the server with ssh -X user@192.168.1.100 and launch e.g. brave, Brave is displayed on the server, not the client. Same is for Thunar. However, if I do xfce4-settings-manager, the ...
0
votes
1answer
16 views

how to create an ssh key-pair for a service account

I would like to generate an ssh key pair for a service account on one machine to access another machine via ssh. When I generate the key with my user, my username is embedded in the public key. E.g. ...
1
vote
2answers
48 views

Enable/Disable OpenSSH daemon on an interface

I have multiple network interfaces like Ethernet, Wifi, WWAN etc. I want to block SSH root login on all interfaces except for the Ethernet one. Is there an interface-based configuration for sshd, like ...
0
votes
0answers
25 views

Weird behaviour of OpenSSH server eating slowly all the available memory

I have a machine running a pgbouncer server and an Open SSH server so clients can enstabilish a tunnel to the server and connect to the database. Now all the clients keep the connection alive for ...
0
votes
2answers
66 views

How can I set an alias for a specific ssh command? [duplicate]

I'm a beginner in Linux, using Ubuntu. I want to make it easier to login to a server using ssh. In my institute, our login command is ssh -Y -p 4022 user@example.com. How can I make an alias for this?
1
vote
1answer
38 views

Linux not responding to public ip ssh request

I'm trying to connect via ssh to my home server from outside of my home network, but I don't get any respond. When I try to locally ssh that server, everything is just fine. But when I do it from ...
0
votes
1answer
47 views

Mac OS ssh: Connection reset by peer

To work with Hadoop, I edited the hosts file and deletе some lines (these lines interfered with correct operation). When running ssh localhost, I encountered the error: kex_exchange_identification: ...
-4
votes
0answers
68 views

Why SSH supports tunneling? [closed]

When someone says "SSH", most often they refer to the ability to invoke commands on a remote server via SSH client connecting to an SSH server (like OpenSSH client and server). Even the full ...
2
votes
1answer
81 views

Unable to connect to the my campus db through omega, the below error keeps popping up

Unable to negotiate with 129.107.56.23 port 22: no matching key exchange method found. Their offer: Diffie-hellman-group-exchange-sha1,Diffie-hellman-group14-sha1,Diffie-hellman-group1-sha1
3
votes
1answer
93 views

scp when both hosts are remote and use different ports

I am reposting a slightly edited version of this Ask Ubuntu question SCP with two different ports, as the answer there that works with command-line options only (without modifying ssh_config) no ...
1
vote
2answers
39 views

Ssh to server2 via server1 using the credentials on server1

I have two servers, server1 and server2, and I can connect to server2 via server1: localUser@localMachine $ ssh user1@server1 user1@server1 $ ssh user2@server2 user2@server2 $ I can do this in one ...
0
votes
0answers
42 views

SSH hang in Linux

I'm getting some weird behavior. Hopefully I can fully explain the situation. I'm using Alma Linux 8. First, I have essential two systems hosted on separate VMWare ESXi hosts (we'll call them A and ...
1
vote
1answer
17 views

AWS Session Manager SSH Web Client: How to use the Alt key for navigation?

When connecting to an EC2 instance (Amazon Linux) via the AWS Systems Manager (SSM) session connect feature, I'm able to successfully connect to my instance using its SSH web client. Unfortunately, I ...
0
votes
0answers
10 views

Pulseaudio sound server only forwards the sound of firefox

I forwarded PulseAudio from the Server centOS PC to the Local Ubuntu PC following the link1. With pavucontrol, the same audio output has been selected properly. But, firefox is the only GUI ...
2
votes
1answer
50 views

Using sshpass in Cygwin, ssh stills prompts for password

According to this RedHat SSH password automation guide I'm following the Example 4: GPG one, and following the steps in that guide I create my pass_file using my own passphrase. Then, I got this: gpg -...
0
votes
0answers
38 views

SSH permission denied error on ssh to localhost, freshly reset SSH keys

I'm running into (what I think is) a very odd situation. I was having some trouble connecting a specific user to another host via SSH. So, I thought I'd try a simple re-initialization of all SSH keys ...
0
votes
1answer
17 views

No more ssh access after setting read only access to a user on my linux server

I just added a user on my linux server and tried to set read only access to this new one. In the process, I wrongly entered a command to set user's rx access on / setfacl -R -m u:user:rx / and now, I ...
1
vote
0answers
22 views

How to configure /etc/pam.d/sshd and nsswitch.conf in order to avoid all remote calls for ssh with local user?

I have created an NSS and a PAM module in order to authenticate and get users and groups from a custom remote server. In order to get them used by the system I am adding a line in /etc/pam.d/sshd: ...
0
votes
0answers
18 views

I somehow closed all ports on my Ethernet device and cannot access it anymore

I am locked out of my Ethernet IP camera and cannot access it using SSH or telnet anymore. An initscript was used to open ports and start Dropbear server, but I somehow deleted/changed it and lost ...
0
votes
1answer
35 views

Does UFW reset iptables on reboot?

I connected to my remote Linux server to adjust my network settings, but I accidentally changed some rules using iptables instead of my preferred method, ufw. I added the rules in ufw and then ran ...
-4
votes
0answers
26 views

SSH, PING, TRACEROUTE problems

Everything worked fine couple days ago, now I cant ssh or ping a device on my home network(it times out). I can't even ssh localhost, then it says connection refused. Also traceroute doesen't work ...
0
votes
1answer
20 views

How to zgrep and then gzip multiple files individually?

I have the following code which searches for a term in multiple files (file1.json.gz, file2.json.gz, etc etc) using zgrep, and then using gzip it saves the output into a single file: zgrep -i 'help' /...
1
vote
1answer
22 views

How do I use SSH to launch a nohup ffmpeg command and leave it running after disconnect?

I'm trying to launch a series of FFMPEG commands over SSH. My SSH client is the native openssh (7.7.2.1) client in Windows Server 2019 (ver 1809 build 17763.2114). The command I am trying to run is ...
0
votes
1answer
21 views

Ansible playbooks failing on RHEL8 with FIPS

I have two sets of Linux VMs in a GCP (Google cloud) environment: Debian9 and RHEL8. The RHEL8 environment is FIPS-140 enabled, due to security/compliance requirements. None of our Ansible playbooks ...
0
votes
0answers
6 views

"Error: Timeout reached while waiting for PID 212" while decrypting LUKS over SSH

I've been trying to open a LUKS container via SSH using dropbear and initramfs/initrd image. My setup works well. I mean, I log via SSH to the target machine, then I see the prompt saying Please ...
0
votes
2answers
44 views

ssh, start a specific shell (ash), and source your environment on the remote machine

This is a kind of follow-up question to this question: ssh, start a specific shell, and run a command on the remote machine?, except more-specifically regarding ash, and focused on the fact that ...
1
vote
0answers
29 views

cannot touch '/home/user/.ssh/known_hosts': Required key not available [closed]

Using Ubuntu 18.04, I am attempting to pull from a git repo this morning, and having difficulty doing anything in regards to ssh. I have narrowed down to this: :~$ sudo rm -r ~/.ssh/known_hosts rm: ...
0
votes
1answer
28 views

Using SSH Git: key lost after system restart?

I am setting up Git usage on Raspbian. This worked OK: cd .ssh ssh-keygen -t rsa -b 4096 -C "name@asdf.com" eval $(ssh-agent -s) ssh-add ./id_rsa_rpi After I created the keys ...
1
vote
1answer
59 views

How to stop: Unable to negotiate with [MyIP] port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

I have inherited a hosted Linux Server where all our Mails and other stuff are organized. With Debian Linux. I assume he didn't touch anything for like 10 Years so its pretty old stuff. Every time I ...
1
vote
1answer
59 views

How do I display a bash prompt when using SSH without a pseudo-terminal?

When the connection is slow, I connect to remote computers using SSH without allocating a pseudo-terminal (e.g. ssh -T user@example.com or ssh user@example.com bash). Although I am able to use the ...
1
vote
1answer
72 views

glxgears gives Error: couldn't get an RGB, Double-buffered visual on one remote server but not on another

The problem: I ssh to two remote clusters. By running glxgears, on one cluster I can successfully visualize the rotating gears though with some warning messages (details below), but on the other one ...
0
votes
0answers
31 views

How to ssh from host into Qemu VM through its hostname, not its IP?

I created a QEMU VM, both host and guest being ubuntu 20.04. Then I created a bridge network and attached it to the VM using Virtual Machine Manager in hope of ssh from host into guest. Now I can do ...
0
votes
0answers
23 views

Maintenance script for "reverse login/typing"?

Moin, in order to be able to help friends with problems on the RaspPi, I wrote a script that the friends start on their Rasp Pi using ssh to establish a reverse tunnel to my server. I can then log in ...
0
votes
1answer
29 views

How to download a file from a remote server to a local folder on my mac using ssh

I'm struggling to download a file from a remote server to a folder on my mac using ssh. I've remoted onto the box successfully and browsed to the folder where the file I want to copy (file1.txt). ...
0
votes
1answer
23 views

Can I require per-user AuthenticationMethods when switching from a non-root user to a root user?

I currently SSH into a root user from another machine with an SSH key & 2FA, so I set AuthenticationMethods publickey,keyboard-interactive. If possible, I would like to be able to SSH into a non-...
-1
votes
0answers
20 views

Except creating a network bridge on the host, is there any other way to SSH from host to guest in QEMU?

I have installed a QEMU VM, both host and guest OS being ubuntu 20.04. For the host to SSH into guest, do I have to use bridged networking? Is there any other way to SSH from host to guest in QEMU ...
2
votes
1answer
98 views

Increasing the SSH session timeout

I'm trying to increase the SSH timeout. The command: > ssh <host> <command> I tried to use: > time ssh -o ConnectionTimeout=10 <host> "sleep 20" 0.044u 0.040s 0:23....
2
votes
1answer
35 views

When an SSH authorized key is restricted to command how can the command read the parameters in the call?

Say an authorized key is restricted to the command to test parameters, eg command="bin/testparameters" and the ssh call is: ssh user@host 'some parameters which may include other commands' ...
0
votes
0answers
22 views

Why such different behavior with the same script? [duplicate]

Check this out: $ cat /tmp/test-ssh.sh #!/bin/bash ssh -T git@bitbucket.org || exit 1 echo continue $ bash -x /tmp/test-ssh.sh + ssh -T git@bitbucket.org authenticated via ssh key. You can use git ...
0
votes
1answer
22 views

SSH with passphrase on three servers

I have three servers A,B, and C. I need to do is to run something like: my_self@A:~$ ssh B "ssh C run_a_script_here" This works if I have my ssh keys setup correctly on A,B,C, and I do not ...
0
votes
0answers
38 views

How to solve an issue with my IP getting repeatedly banned due to incorrect SSH login attempts?

I recently upgraded my laptop to Ubuntu 21.10. I do not know if it is related, but I started having the following issue after the upgrade: At work I connect to a cluster via SSH. For this I use key-...
0
votes
1answer
54 views

Permission Denied If I try to execute a bash script via SSH to a remote server

I am able to make an ssh connection without password to that remote server. Also if i execute a single line command instead of a bash script, it works without any problems. But if i try to execute a ...
0
votes
1answer
20 views

What is ssh -L 123:farawayhost:456 remotehost?

Came from this question: What's ssh port forwarding and what's the difference between ssh local and remote port forwarding, I am confused about this usage: ssh -L 123:farawayhost:456 ...
2
votes
1answer
57 views

Backspace in shell moves cursor to the right

There's this remote shell I login into that, when I try to delete a character, instead of visually showing the character being deleted, it remains there and the cursor moves to the right. This shell ...
0
votes
1answer
27 views

adding a private key of another user

I am running on macos as usera. I want to ssh from usera@cli, but with a key that I have of user b. e.g usera@mbp ssh userb@server The main point is adding this rsa keychain to my personal computer ...

1
2 3 4 5
143