Questions tagged [ssh]
Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.
10,693
questions
1
vote
0
answers
24
views
Shut down multiple linux systems (Raspberry pi) over network ssh [duplicate]
i have 6 Rpi 5 systems which i want to shut down from my windows pc.
I was hoping the put a range of IP addresses (they are on my local network 50.100 > 50.106)
They all have ssh access too.
Is ...
0
votes
1
answer
35
views
How to make SSH more sensible to failures?
SSH sometimes appears in state when process is not finished, there is command log from a server on a screen but in fact connection failed – user can't make any commands, command line does not respond.
...
0
votes
1
answer
31
views
scp not working in a custom python shell script after migration from ubuntu 20.04 to debian 12
I have this backup server where various clients upload daily archives via scp. In order to protect the machine and to manage the backups, I have written a simple python shell script that only allows ...
0
votes
0
answers
21
views
SFTP: Pull files from remote host without directly knowing that they are there?
I'm sure someone has encountered a similar problem to mine before but I can't seem to find a solution by myself: There are two Debian hosts - one within a DMZ, the other within a secure environment. ...
0
votes
1
answer
100
views
After successful SSH connections can not type anything
I am using Ubuntu and after my successful login in my SSH I can not type anything. When I reboot my computer and open a Terminal, I run the command ssh root@****. I receive a password prompt where I ...
0
votes
1
answer
56
views
Execute a remote shell script from within screen via SSH and view stdout in one command
Couldn't find an answer for my particular use-case in the hours I've unsuccessfully researched this.
I have a script located on machine B. I am aiming to run a command on machine A that establishes an ...
0
votes
0
answers
42
views
Cisco IR829 , Cellular is not getting IP address
hello I have a problem with my current router and with this model Ir829 i always have problem to get ip address by cellular, the sim card seems to work good with other device, and i have tested ...
2
votes
1
answer
614
views
How to explain sequences of FIN,ACK instead of FIN - FIN,ACK?
Context: newly installed Debian 12, I get a bunch of strange logs related to ssh:
root@square:~# journalctl -u ssh -f
May 07 11:13:00 yop-square sshd[766]: error: kex_exchange_identification: ...
0
votes
0
answers
32
views
macOS keeps asking my ssh passphrase with git remote since I updated to Sonoma
Referencing this similar issue, which had good suggestions:
macOS keeps asking my ssh passphrase since I updated to Sierra
but this solution isn't working for Sonoma, and using git on a server. Used ...
0
votes
1
answer
114
views
How do I clone from local git repositories with ssh?
The final goal is to host a remote repo on my pc that support pushing and pulling.
From the official doc given by git help clone, the host url format should be
git clone ssh://user@localhost:/C:/path/...
2
votes
0
answers
44
views
Connection abruptly terminated by remote host when trying to gain ssh access to a windows computer from outside the local network
I have a windows computer and would like to gain ssh access to its powershell from outside my home network. For this purpose, I opened a TCP port on the router and set up automatic forwarding to the ...
1
vote
1
answer
42
views
git - using gitconfig to switch repository host address
So right now I have some alias in my ~/.ssh/config:
Host github_company_a
HostName github.com
Host github_company_b
HostName github.com
and I use the alias directly: git clone git@...
0
votes
1
answer
112
views
SSH login to Windows 10 not possible with a admin account
I am trying to establish an SSH connection from a VirtualBox Ubuntu2204 guest to Windows 10 host via ssh using public key. I can do it when I use a non-admin account, but it fails with an admin ...
0
votes
0
answers
45
views
Using ProxyJump option for SSH tunnel with multiple hops
I need to create a tunnel from localhost to host2 through host1, so I'm using the approach suggested in this answer:
ssh -L 9998:host2:22 -N host1
ssh -L 9999:localhost:1234 -N -p 9998 localhost
...
0
votes
0
answers
86
views
ovpn config file creating a tunnel but cannot access LAN apps
I have an ovpn file which opens a tunnel to router I have setup. This tunnel works since I can confirm that my public IP is located at the same location as this router. This router has a local server ...
0
votes
0
answers
57
views
ssh connection on Ubuntu via WSL2 while connected to Windows 10 VPN
To access a supercomputer, I need to connect to the VPN and then perform an ssh command.
Is there a possibility to connect to the VPN via Windows 10 (Cisco VPN Client) and perform the ssh command on ...
0
votes
1
answer
42
views
ssh config share values between alias
I want to setup a ssh connection with different configurations depending on some conditions. Much of the parameters in the aliases are the same. Is there a way to avoid repeating them in each alias?
...
0
votes
1
answer
47
views
SSH key works for FileZilla and Windows CMD, but not PuTTY
I upgraded Raspbian on my 6 Raspberry Pi units from Bullseye to Bookworm by:
Updating /etc/apt/sources.list.
sudo apt update
sudo apt full-upgrade
I didn't change anything in the upgrade. The ...
1
vote
1
answer
184
views
Which ed25519 PEM keys does openssh >9.6 support?
According to the release notes of OpenSSH 9.6 it now supports ED25519 keys in PEM format
ssh(1), sshd(8), ssh-add(1), ssh-keygen(1): add support for reading
ED25519 private keys in PEM PKCS8 ...
0
votes
0
answers
67
views
ssh between two docker containers on different nodes
Hi I am trying to create (preferably passwordless) ssh connection between two docker containers (named master and worker_1) on mulitple nodes and having difficulties.
These are the options I tried so ...
0
votes
0
answers
115
views
Why did my ssh port forwarding not work?
I have this port forwarding set up at my home:
Fedora 39 server with sshd set up and firewall disabled.
Linksys WRT32X router using OpenWRT 23.05.x connected to a cable modem (routing capable,
but ...
0
votes
0
answers
32
views
Access ssh through proxy
My college requires proxy to access the WiFi. My computer is connected to that WiFi at college. I want to access it from my home using ssh. What can I do?
what can I do to access a machine using ssh ...
0
votes
1
answer
45
views
How can I configure OpenSSH to forward SFTP-Requests?
I have a two-server setup in which one is only reachable via the other. The corresponding client config looks like this:
Host <actual_host>
User root
ProxyCommand /bin/bash -c "ssh ...
0
votes
1
answer
150
views
How to stop ufw-firewall preventing me to ssh into another server?
I have a weird issue on Ubuntu 22.4.4 LTS.
Using the ufw firewall, I allowed SSH/Port 22, HTTP and HTTPS. I can successfully login via SSH into my server. However, when I am logged in on the server, ...
1
vote
0
answers
126
views
Can't connect via SSH to OpenWrt after changing /etc/config/network
Setup
Mikrotik RouterBoard 750gr3
OS: OpenWrt 23.05.03
MacBook
Microtik: Port 1
IP: 10.13.1.201
Problem
Before a configuration change to /etc/config/network, SSH was possible, but after rebooting,...
0
votes
0
answers
426
views
Starting a GUI process on a remote windows computer through SSH
I would like to start a process on a remote computer through SSH and have the GUI of the process open up on one of the remote computer's displays.
The remote computer is running Windows (10 or 11)
...
0
votes
0
answers
35
views
Avoiding Google Authenticator Re-Authentication for Existing SSH Sessions on EC2
I've configured Google Authenticator for 2FA on my Almalinux 9 EC2 instance to secure SSH access. However, I'm prompted for the Google Authenticator code every time I open a new SSH session, even when ...
0
votes
0
answers
17
views
I can ssh and access the webserver but ping fails
My knowledge about networking is basic.
I have several computers in a intranet. Let's call one of them the DB_Host.
I want to ping this computer.
So I do
ping DB_Host.intranet.com -c 1
When I do that ...
1
vote
1
answer
78
views
Is it possible to have a single IP for a VM in different networks?
I am learning about DNS administration in Linux. And I do it in my office and home. In office my IP range is 10.x.x.x/21 whereas in my home, my IP range is 192.x.x.x/24. Since I am learning DNS by ...
-1
votes
1
answer
128
views
What will be the local IP and remote IP while doing port forwarding in airtel Router?
I bought an unmanaged cloud server from the hosting company. My cloud Server IP is 50.21.182.217. It is hosted with Plesk so PORT is 8443. My local IP is 192.168.1.6 and my Router IP is 122.161.240.22....
0
votes
0
answers
47
views
Flushing output on interrupt on the Linux cmdline
On a local terminal, the stty -noflsh option allows to discard buffered
output on Ctrl-C and thus prevents from long scrolling delays if one did
accidentally output large amounts of text to the ...
0
votes
0
answers
95
views
Unable to get ssh key based authentication working with MobaXTerm
hello I am running MobaXTerm 24.0 and am able to connect to the remote server fine using password authentication but not using ssh keys. I'm also able to ssh directly to the server (I'm using Cygwin's ...
0
votes
0
answers
13
views
Ansible use connection: local option along with jump ssh
How to make Ansible use jump server ssh when there is the "connection: local" instruction?
Ex:
- name: snmp
hosts: all
gather_facts: false
connection: local
serial: 1
tasks:
- ...
0
votes
1
answer
69
views
I'm getting on gitbash a warning WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! for github
When I try to clone a git repository in gitbash on Windows I get following error:
$ ssh -T [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST ...
0
votes
2
answers
59
views
sshd Match on the type of pubkey being use by the authenticating user (Match PubkeyAcceptedAlgorithms)
I want to detect what type of ssh pubkey is being used by a user and do a Match Statement on it in sshd_config.
The goal is to prevent using pam if a Secure Key (https://man.openbsd.org/ssh-keygen#...
0
votes
0
answers
198
views
Ncat: Connection Refused when connecting on Linux server
I created a java application and ran it with docker inside a linux server XX.XX.XX.XX. That application should listen behind port 105 of that server. In fact, by executing the "netstat -an | grep ...
0
votes
0
answers
98
views
How to be able to access all folders on Ubuntu when using Visual Studio Code Remote?
I have my user which seem to be in the sudo group:
myuser@server:~$ groups myuser
myuser : myuser adm cdrom sudo dip plugdev
But when I use Visual Studio remote with SSH, it doesn't give me the ...
1
vote
1
answer
67
views
KeePassXC and `.ssh/config` dont behave correctly when setting public key as Identity
I have been using KeePassXC as a password manager for a while and I've been quite happy with it. Today I decided to try to set it up as as ssh agent. The platforms of interest for me are Windows and ...
0
votes
0
answers
93
views
X11 forwarding on SDDM
I am trying to forward X11 from my PC (server) to my laptop (client). I allowed X11 forwarding in my sshd_config. Running ssh user@ip -X returns Warning: untrusted X11 forwarding setup failed: xauth ...
0
votes
0
answers
22
views
Find source of bandwidth cap
Good day!
There is a group of Ubuntu 22.04 LTS workstations at work that me and my coworker use to run different kinds of jobs. Both me and another coworker are sudoers on the machines, and we are ...
0
votes
0
answers
48
views
One liner command to ssh to server2, switch to another user in server2, ssh into server3, run commands in server3 and get output
Because I can only get to server3 from server2 (Server2 running CentOS7), I'm trying to create a "template" command or a script that I can use to :
ssh to server2
switch to another user in ...
1
vote
1
answer
79
views
What exactly triggers the following SSHD warning, suspected IP change?
I have connected via SSH to the server before (using name, not IP).
What exactly triggers the following SSHD message:
Warning: Permanently added the ECDSA host key for IP address
'[xx.xx.xx.xx]:23' ...
0
votes
0
answers
90
views
no colors in vi (vim(1)) when ssh from Windows to Linux. How to fix?
Windows Terminal 1.19.10573.0
When I ssh from Windows into a linux machine, I got colored output on the shell just fine. Directories and files are colored when using ls(1). Same with grep(1); results ...
5
votes
1
answer
1k
views
Does changing your Mac name affect your SSH key?
I was setting up new SSH keys on my Mac for usage on BitBucket and GitHub. I had not named my Mac yet so it had the default name of <my name's> MacBook Pro.
When I was pasting the ssh key in ...
0
votes
0
answers
264
views
Why can’t I connect to an SSH server on Windows?
I'm trying to connect to my PC from my laptop when I'm out of town. First I made sure my VPN was turned off. I live in Egypt and my ISP is WE Egypt (aka: Telecom Egypt).
I set everything up but it's ...
1
vote
1
answer
35
views
Why in port forwarding in VirtualBox I can't set both equal host port and guest port?
Name: Anything you want. example for ssh, say “ssh"
Protocol: Type of protocol [ for ssh: TCP ]
Host IP: provide hostname from which host you want to connect to [ over here: 127.0.0.1 ]
Host Port:...
1
vote
1
answer
58
views
why is ssh-key only used on one system
I had to copy manually my ssh key from a windows system to a headless ubuntu server using scp (because ssh-copy-id isn't a basic command on windows), and I've desactivated password authentication.
...
0
votes
2
answers
3k
views
What are the implications for bug CVE-2024-3094 (ssh / xz) and how to minimize potential damage?
What are the real implications for bug CVE-2024-3094 (related to SSH and the XZ library) and how to minimize potential damage to the server?
3
votes
1
answer
1k
views
How to properly secure harden SSH in 2024?
Since 1995, SSH, notably OpenSSH server [1999], is one of those essential services like DNS [1985] for admins to manage their IT landscapes.
How do I properly secure harden an OpenSSH server in 2024?
...
0
votes
0
answers
30
views
Tmux session disconnect does not preserve session content when reconnecting
I need to copy a 200gb+ file to multiple servers from one server. I have a sftp transfer running in multiple tmux sessions from the one server.
When I press ctrl+b, d to exit the tmux instance and ...