Questions tagged [ssh]

Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

Filter by
Sorted by
Tagged with
-3
votes
0answers
22 views

GUI access possible for subscription website with only ssh access to a NAS in this IP range?

I need access to some data on a website X. This website contains data as downloadable files and also as browsable pages. My university pays for access to this website, I do not. This allows access to ...
0
votes
0answers
19 views

How can you transfer big files between Ubuntu 20.04 and Windows 10

So I can transfer them via SFTP because windows has openSSH server pre-installed, but it's very slow. I want to transfer an 8GB+ machine so I can't do it via a USB neither because FAT32 can't handle. ...
-1
votes
0answers
10 views

WSL2 SSH RemoteForward connect back

I'm trying to use rsync on my dev server to download files to my local machine after checking out a branch on the dev server. Before using wsl2, I used to be able to do the following: Remote server ...
0
votes
0answers
33 views

Port 22 Connection refused on EC2 instance after upgrade to Ubuntu 18.04

According to this question, it's not a good idea to upgrade an EC2 instance. I'm cool with that. However, I would still like to know the problem in case this happens on a physical device. I can no ...
-1
votes
1answer
52 views

Delete Bulk Email Accounts from cPanel Using SSH Command

on Cpanel, it has created many different emails like in the attached screenshot on my whole server. I want to remove all such emails with 1 SSH command. for that purpose, I have tried this command on ...
0
votes
2answers
29 views

xinetd how to activate sshd service on custom port?

When I try to run ssh service in xinetd with customized port (port=2211) it shows me this error: xinetd[16783]: Service ssh expects port 22, not 2211 If I change port to 22 in xinetd it works fine ...
0
votes
0answers
15 views

Best way to download files from full FTP server via SSH

I just discovered that our FTP Server (Kas) is more than full with pics from our cam. So now i stopped the uploading and connected to it via ssh, since i always get a timeout when i try it via the ...
1
vote
0answers
45 views

Allow SSH Public Key Login to User on Server without Password

I'm running a few Docker Container at home for some personal training purpose (only local) to educate myself. I want to SSH from one container to another container. Nearly everything is working. I ...
0
votes
1answer
24 views

Can't ssh to GitLab ee in a docker container

I've installed GitLab ee on Docker. I'd like to use authentication via ssh instead password but each time I try to authenticate, connection is closed. SSH Port is 1122->22 so I'm connecting with ...
0
votes
0answers
16 views

WSL2 remote forward connect back on remote host

I'm trying to use rsync on my dev server to download files to my local machine after checking out a branch on the dev server. Before using wsl2, I used to be able to do the following: Remote server ...
0
votes
0answers
123 views

ssh port forwarding (tunneling in HPC)

I have an application server that runs on a compute node. The server opens a port (9000) and I then run a command for tunneling between my local machine and the server: ssh -N -f -L 9000:compute-node:...
0
votes
0answers
40 views

Run Script over SSH with nologin user

I have to run a script from server A and connects to 20 more servers over ssh to pull information. Previously i was using a normal user, and that would become a problem once the password for that user ...
2
votes
1answer
39 views

How to keep ssh connected when I connect to a VPN tunnel?

I'm facing this issue: I have a cloud vm that I can only access through ssh, this vm is meant to be used as a openvpn connection tester. Each time opevnvpn establishes a connection I lost my ssh ...
0
votes
0answers
16 views

Host name was removed from host list automatically

My Azure server suddenly lost communication deployed site and I was unable to connect SSH (PUtty) When diagnosing system it shows no error in connectivity. After some time I got connectivity to PUtty ...
0
votes
1answer
17 views

GCP unable to ssh from the browser

I recently added a firewall rule to my instance, so that it can be accessed only from whitelisted IPs. After creating this firewall I am unable to ssh using the browser window option. The CLI works ...
1
vote
1answer
31 views

SSH tunnel attempt. Unable to establish SSH connection without actual shell. (Arch Linux)

So I'm trying to figure out how to establish a tunnel, but nothing else. I don't want the user to have shell access. I found this ssh tunneling only access Is this information outdated or something? ...
0
votes
1answer
150 views

Unable to ssh to Google Compute Engine

I used to log in to the instance through GCE web UI by clicking "Open in web browser". Recently I try to log in the instance using the same way, but the window just keep showing "...
1
vote
0answers
42 views

Use script for SSH Banner before login

I'm aware you can run your own scripts for the MOTD in /etc/update-motd.d and/or /etc/motd, but that's for displaying after a user has logged in. The SSHD config file (/etc/ssh/sshd_config) allows you ...
-1
votes
0answers
37 views

What causes this: Proxy could not open connection to hostname: Bad Request kex_exchange_identification: Connection closed by remote host

Hello I am trying to access a remote server through SSH and this is happening to me, OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020 debug1: Reading configuration data /home/paulo/.ssh/...
0
votes
0answers
97 views

kex_exchange_identification: Connection closed by remote host

Trying to connect to web servers running on Centos 7 via jump server, earlier this connection used to work fine without any problems, but not sure now what went wrong. Following is the status $ ssh -...
-2
votes
0answers
50 views

Kali VM IPTable not loading [closed]

I added these rules to my input table on my Kali VM but now its not showing my IPtable or letting pings go through. My ssh still runs through my host machine no problem though. iptables -A INPUT -i ...
0
votes
1answer
45 views

Testing SSH rules on a locally hosted VM

I am practicing writing iptables rules and was looking to test the ones I wrote from an external network. I am currently running on an Ubuntu VM and have the following rules written: sudo iptables -A ...
0
votes
0answers
66 views

Debian Gnome display - unable to create directory '/run/user/1001/dconf

In order to Show Gnome Version from ssh commandline i get user@debian:$ gnome-session --version (process:6888): dconf-CRITICAL **: 22:45:31.084: unable to create directory '/run/user/1001/dconf': ...
-2
votes
1answer
75 views

Self-hosted solution for password management and SSH Jump server [closed]

We're trying to find a self-hosted solution that can act as an "SSH Jump server" AND a "Password Management" to securely share access credentials. Is there anyway that we can find ...
0
votes
2answers
49 views

How to manage the keys in my ~/.ssh/authorized_keys on the server? (login without requiring password each time on a particular machine)

I am trying to follow this answer to login to my server via ssh without typing my extremely long password each time: https://serverfault.com/a/241593/295203 Right now I have 6 keys in my ...
0
votes
1answer
19 views

How to configure Windows 2012 Server to receive GIT pushes

I'm new on GIT, and I would like to configure a Windows 2012 Server to be a GIT repository (--bare) so the developers can clone and push updates to this server. I can't find any documentation to learn ...
0
votes
0answers
29 views

Issues with Bash Script to SSH and Copy String Variables from a CSV to a remote file

Here is my script #!/bin/bash clear PSQLSTART="INSERT INTO TABLE (Name, Description, Field3, Field4, Field5, Field6, Field7, Field8, Field9, Field10, Field11, Field12, Field13, Field14, Field15,...
0
votes
1answer
41 views

SSH X11 forwarding from Linux to Mac stopped working (just hangs)

I've been using my Mac to login to Linux boxes and run X applications for some time. Suddenly, recently, it has stopped working. The failure mode is strange: I don't get the usual "X11 connection ...
0
votes
1answer
47 views

systemd service produces Exec format error

I have created the following systemd service to automatically keep an autossh tunnel open between two servers: #Systemd unit file for autossh [Unit] Description=Autossh Tunnel [Service] Type=forking ...
1
vote
1answer
39 views

Weird kex_exchange_identification error

sshd error: kex_exchange_identification: client sent invalid protocol identifier "CONNECT hotmail-com.olc.protection.outlook.com:25 HTTP/1.1" This line appears in logs 2-3 times per month, ...
1
vote
1answer
54 views

Unable to SSH into server

I'm trying to SSH into a server and I'm receiving a Connection closed message every time. I've tried changing MTU settings on both server and client side without success. Here are the server side logs:...
0
votes
1answer
27 views

Wrtie to ssh's stdin from another process

I have ssh connection where I want to perform some actions with pauses, but there is no ability to write a script for this system. My idea was to write to /proc/<pid>/fd/0 but unfortunately this ...
0
votes
0answers
29 views

Wireguard Borgbackup / SSH Stuck

I'm having issues running borgbackup over a wireguard vpn connection. The Backup used to work for a few months, but now I'm having issues making borg and sometimes my ssh sessions hang. I've checked ...
0
votes
1answer
92 views

Is my server being hacked in?

I need help to decide if my server has been hacked in. The server has sshd turned on. The other day, I tried lsof -i TCP to see someone is connecting to the server before I restart it. Then I noticed ...
1
vote
0answers
32 views

Docker: 'failed to open /dev/fuse: Permission denied' as non root user

What I want to achieve is to prepare Docker image in which every non-root user can make SSHF mount. MWE below: Dockerfile: FROM rocker/rstudio:4.0.3 USER root RUN apt-get update && apt-get ...
1
vote
0answers
29 views

SFTP is not successfully connecting to some clients, error is returned

I have an SFTP server installed on Centos 8. First, I created a group sftpusers and users (with passwords) in it. I added following lines in /etc/ssh/sshd_config file: Port 22 Port 33000 ... #...
1
vote
0answers
16 views

Lastlog to include ssh proxyjumps and imap authorizations

I want to know which of my users still actively use my server. The command lastlog tells me when they last logged in per ssh and spawned a shell on the server. It however does not tell me when they ...
0
votes
1answer
83 views

How to debug: ssh_exchange_identification: Connection closed by remote host

SSH by private IP is fine I'm able to connect to a server through SSH by its private IP address: C:\Users\m3>ssh -vvvvA uconn@192.168.1.11 OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 debug3: Failed ...
-1
votes
0answers
67 views

Can't connect via OpenVPN to the server

We have a VPS (Server A – IP 194.50.254.149). On it an OpenVPN server was installed according to this article, and nginx as a reverse-proxy, which proxies requests by HTTPS virtual host to another ...
0
votes
0answers
33 views

Impossible to log in via web SSH (VPS - LINUX)

Today I facing a weird issue: I cannot log in into my VPS using on-site SSH module. I don't know where to find the information what happened. This occurs suddenly because few hours ago everything was ...
1
vote
1answer
40 views

How to use scp when cygwin is used as default shell

I have installed openssh-server from optional features on a Windows machine. I can ssh and scp (I need upload only) from my Linux box; However I don't like cmd shell, so I installed Cygwin and set it ...
1
vote
1answer
28 views

Server part of ssh tunnel fails to detect client closed connection

I am using an ssh tunnel for port forwarding via the command ssh -fN -R *:443:localhost:443 <public server> Sometimes, the ssh process on the client dies (presumably connection timeout), so I ...
0
votes
0answers
15 views

Debian 10 VPS inaccessible through SSH with linux-image-cloud-amd64 kernel

I can't log in through SSH when VPS is running the cloud-amd64 kernel from Debian 10. VPS boots fine, VNC allows logging into VPS and sshd shows active and running properly, but I can't SSH remotely ...
0
votes
0answers
30 views

SSH hangs while executing remote script from a Daemon

I have a script which gets hanged while doing SSH from a Daemon , whereas it works perfectly while I run it from the terminal. Source Machine - redhat-rhel7.3-EUS-x86_64 Remote Machine - Solaris 11.4 ...
2
votes
1answer
55 views

How to mount a filesystem that also has remote filesystems mounted

I am trying to create a system for our developers to be able to use libraries that MUST be retained at the client's site. We are not allowed to download these libraries to develop off locally, but ...
0
votes
1answer
100 views

Ethernet (wired connection) is Unreachable in Ubuntu 20.04

I have Ubuntu server where I have configured the static IP it was pinging and able to update and use internet and able to connect through ssh. but after the shutdown because of power failure. I was ...
1
vote
0answers
108 views

SSH Shell not popping even though the debug log shows it connected

I try to log in to my server using the standard ssh user@host command, and although it technically connects, I'm unable to get a shell. I have used this server for months and I don't understand what's ...
0
votes
1answer
55 views

Is there any way to check if ssh root login is disabled

In sshd_config, we can set PermitRootLogin no to disable root login. I am writing a script to check server config. Is there any way to check/test this, without check the sshd_config file, since this ...
0
votes
1answer
56 views

For SSH access only, do I leave `#PubkeyAuthentication yes` commented out in sshd_config, or uncomment it?

Just setting up a new Debian 10 server having uploaded my public SSH keys, not restarted sshd yet. I can now log in without password, so now doing all the usual recommended edits in /etc/ssh/...
1
vote
0answers
33 views

Delete old SSH session recordings

Recently I've been testing SSH Session recording in Fedora + Cockpit as a method of auditing. This has been working pretty well, but it records too much information, and more importantly, picked up a ...

1
2 3 4 5
163