Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

1
vote
0answers
23 views

Graceful 'Access denied' message when SSH to a server protected with SSSD fails

I'm using SSSD on Ubuntu for authn/authz. This works great, but I am getting a "Server unexpectedly closed network connection" when I try to SSH to the box with an unauthorized user. I can log in ...
0
votes
0answers
12 views

Solutions for centralized user management, sessions recording and jump server login on Linux debian [on hold]

I am managing about 30 Linux (Ubuntu) servers and we have a team of 20 IT staff members. Different members have access to different servers. Currently, we have one single user on each server and I'm ...
2
votes
2answers
34 views

extrenal access to ssh server using iptables rules

I have a router running DD-WRT. In my network I have a NAS device which runs an OpenSSH server. I want to be able to access the OpenSSH server from outside the LAN. This is accomplished by adding ...
-2
votes
0answers
29 views

create a back door user on freebsd ssh service [on hold]

I want to create a back door user in FreeBSD ssh server . I want when user request for login on ssh server with a special IP and mac-address automatically accept his request and ignore authentication ...
0
votes
1answer
22 views

Host Key verification failed SSH Rsync

Two days ago I started using SSH to transfer backups of two Linux servers to another one. I created a shell script to run it in Crontab. Both servers are using Ubuntu 14.04.5 LTS My SQL-Server ...
-1
votes
0answers
49 views

SSH equivalent of Putty Remote forwarding? [on hold]

I need help with finding the SSH equivalent of putty Remote forwarding. The scenario is that if I use putty remote forwarding like I am able to access localhost:3030 by connecting to remote:3000 ...
5
votes
1answer
565 views

SCP Changing text file contents

I am trying to copy a file from machine A: apt policy openssh-client openssh-client: Installiert: 1:7.2p2-4ubuntu2.4 to machine B: apt-cache policy openssh-client openssh-client: ...
0
votes
0answers
28 views

Problems trying to SSH/reset SSH for gcloud compute

I'm trying to SSH into gcloud. I'm currently inside ~/.ssh and have some VNC keys stored in there that was given to me. I have followed instructions with gauth login and set my project id to clear-...
1
vote
0answers
39 views

Ubuntu upgrade to 18.04 setrlimit, getrlimit & ssh_sandbox_child causing sshd to not work

I am performing a do-release-upgrade from a fresh install of Ubuntu 16.04 to 18.04 on a VM. After the upgrade I could no longer access via port 22. Trying again I installed drop bear prior to ...
0
votes
0answers
26 views

EC2 ssh 'authenticity of host can not be established'

There are a lot of questions on ServerFault and StackOverflow about the problem of 'authenticity of host can not be established'. For instance: https://stackoverflow.com/questions/2360842/ec2-ssh-...
2
votes
2answers
46 views

Bad Sector on disk causes the whole server to crash

Our dedicated server's hard disk was recently diagnosed with bad-sectors, and each time certain data on the disk are about to get accessed, the whole server goes non-responding before i i issue a ...
0
votes
0answers
31 views

putty slow ssh key exchange

The problem: The key exchange between putty (Win7) and the linux ssh server takes about 10 seconds. Prior to moving my network to a new location, this didn't occur. I'm connecting to 3 different boxes ...
0
votes
1answer
54 views

X server session of CentOS7 freezes when cat-ing (or any other print) of a lot of data through ssh

The specs of my system is CentOS7 with Cinnamon GUI. I usually work with a server so I almost always have a lot of sessions of ssh -X running. If I try to do anything that will print a lot of data on ...
0
votes
0answers
44 views

Always forward client identity [migrated]

I use JuiceSSH on my mobile and have quite a long ssh config file on my PC. On my PC if I ssh in to a bastion server, I cannot SSH to any subsequent servers. Using my mobile I can. This indicates to ...
0
votes
0answers
8 views

SSH login hangs in MacOS Sierra but not in Linux environment [migrated]

The command below hangs when I attempt to connect to SSH server from Mac OS client. However, it works perfectly fine in Linux env. $ ssh -vvv master@172.18.0.2 -p 22 OpenSSH_7.4p1, LibreSSL 2.5.0 ...
1
vote
1answer
9 views

Debian: Problems authenticating to ad

Our Debian server somehow got disconnected from AD, and I am trying to get it back. I have tried different methods. The one that seems to have worked best is realm. Atleast it says that it has ...
0
votes
2answers
26 views

How can I disable the password reset prompt at ssh login for expired password? (RHEL 6.9)

Environment: Red Hat Enterprise Linux Server release 6.9 (Santiago) LDAP provided by Oracle Directory Server running on Solaris How do I turn off the automatic change password prompt when a user ...
0
votes
0answers
17 views

further authentication required - aws ssh port forwarding

We are trying to use a Linux bastion host to connect to windows ec2 instances using putty. Pablo and ALex_hha gave a great explanation at Can we use Linux Bastion Server to connect to Windows instance ...
0
votes
1answer
38 views

haproxy ssh path based routing

I have a use case where I want to use haproxy to forward ssh requests to different back end servers. I want a user to be able to ssh to proxy.example.com/server1 and haproxy forwards the request on ...
0
votes
0answers
11 views

rsync error: packet_write_wait

I have been trying to automate a backup script which backs up my home directory (among other things) and I have been unable to fix the error $ rsync --quiet -e ssh /home/user/bkp/user.tar.lrz user@...
0
votes
1answer
37 views

SSH login timeout while checking private key (sss_ssh_authorizedkeys)

I am having this issue right now with 3 servers at least. When attempting to connect to the server via ssh with a private key with a specific user, it shows the welcome banner, takes almost two ...
0
votes
0answers
9 views

How do I make my backspace key functional in a bash script for Linux being accessed remotely from Windows? [migrated]

I have a bash script on CentOS 7.4 with the following line that lets a user input a variable and then lets them confirm that what they entered is indeed correct: read -p "Enter the name of the ...
0
votes
1answer
23 views

Backuppc | Got fatal error during xfer (aborted by signal=PIPE)

I am running backuppc version 3.3.1 on an Ubuntu 16.04.5 LTS, I try to backup several Linux servers, almost Debian, ubuntu or proxmox hosts. My issue is that when I run the Full/Incermental backup ...
3
votes
2answers
195 views

Difference between 127.0.0.1 and 127.0.1.1? [duplicate]

In my /etc/hosts file, I have two lines: 127.0.0.1 localhost 127.0.1.1 hostname What is the difference between the two lines, where do I find the host name?
0
votes
0answers
30 views

Restricting SFTP access to user home directory / connection reset error

I'm trying to configure SFTP access and restrict it to user home directory on Ubuntu 16.04. It's Digital Ocean droplet with root SSH access configured in creation process. When I'm trying to connect ...
0
votes
2answers
41 views

How to allow SSH server to accept inbound traffic from 2 TCP ports?

Brief Allow the following TCP port numbers on SSH server 22 2222 Premises The machine uses an Amazon Linux AMI distribution The SSH installation is based on an SELinux system Details By default, ...
-4
votes
0answers
28 views

Accidentally Deleted Every thing from VPS Server [duplicate]

I was working on godaddy centOs6.5 VPS. I wanted to delete some files using ssh. But I accidentally ran command rm -rf /* from root. Now every thing is vanished. Is there any way to restore or ...
3
votes
2answers
116 views

How do you securely retrieve the ssh host keys from a google compute engine instance?

I want to update my ~/.ssh/known_hosts with the host key information for a newly created GCE instance. But I'm not sure how to securely retrieve that information. I thought something like gcloud ...
0
votes
0answers
36 views

Can you disable su for certain users logged in via ssh?

Basically, I'm running a Mac Mini as a server, and I'm trying to close some security holes. My server has 3 users: admin, git, and server. Each user has public key authentication enabled, while only ...
0
votes
2answers
25 views

ssh config per dns domains

I have two platforms with many servers I want to connect to via ssh. I have in resolv.conf search domain1.net domain2.org So I only have the machine name to type for ssh. I want to have an ssh ...
0
votes
2answers
43 views

How to use ssh client without local OS login

I have server-like machines (they are not workstations, fully automated) and I need them to be able to run a script that opens a client ssh connection (to a 3rd party server such as github), and I ...
1
vote
1answer
34 views

use the arcfour cipher with sshfs and google cloud

I would like to use the arcfour cipher when mounting a drive using sshfs. However, if i specify sshfs -o Ciphers=arcfour my virtual machine resets the connection (I am able to sshfs without this ...
0
votes
0answers
31 views

Automatic write from web server to git production repository using passwordless SSH key: is it secure?

I have a wordpress website which have 4 different environments: development, preview, staging and production. This all are connected to 4 git remote repositories: development, preview, staging and ...
0
votes
0answers
15 views

Is it ok to delete SSH configuration files? [closed]

From what I read, SSH is mainly used for remotely accessing a machine. If I don't want anyone remotely accessing my machine, nor myself included, is it ok to delete these configuration files from my ...
-1
votes
2answers
56 views

Data transfer between two linux servers

I need to transfer data between two linux servers using the ssh connection to the servers, using specific scripts, and using direct cross-over cable. The two servers have multiple network interfaces; ...
0
votes
1answer
28 views

reverse ssh using systemd-cron is not connecting [closed]

I have a script that checks my home rpi2 for a file using ssh, pk auth, if the file exists it deletes it (again ssh pk auth) and opens a reverse ssh with: ssh -fN -R xxxx:localhost:22 user@...
0
votes
0answers
8 views

How to setup multiple user for sftp forr upload file purpose and restrict user to own directory only? [duplicate]

Linux server aws ec2 I will create a directory in home like /home/in/. Inside the /in/ directory, i will create directory for multiple user. For example, /in/user1/ and /in/user2/, user will upload ...
0
votes
0answers
14 views

AWS Lunux 2: Chrooted SFTP server with AD users

We'd like to implement an SFTP server with chrooted user's folders as /home/username. The issue here is that this server has joined to AD domain and users login to it as username@domain.com. Adding to ...
0
votes
0answers
31 views

How can I distinguish between production and development terminal tabs?

Today I almost entered a command into a production database console, thinking it was my local one. Is there a good way to prevent this mistake from happening? My first thought was to make the UI ...
1
vote
1answer
73 views

I Set ForceCommand on a server, now I can't SSH in

I set a ForceCommand in the sshd config file to a script that has an error. Thus execution of the script fails and the SSH connection is closed immediately after. I can SSH as root (though the script ...
1
vote
0answers
31 views

Cygwin ssh with keys error - A specified logon session does not exist

Update: The issue is only on Windows server 2008 R2. I created a Windows server 2012 R2 VM and it works fine. I want to run some windows query through ssh, but this is a interesting issue which I'm ...
4
votes
0answers
113 views

Docker + Ansible + google-compute-engine debian packages - a confusing story

Dear fellow Server Faulters! I have stumbled upon a problem that confuses me A LOT and you are my only help! Long story short: 1. I have a set of ansible playbooks to configure servers 2. These ...
0
votes
0answers
28 views

Problems with jumpbox on AWS EC2 / Ubuntu

I have a strange problem with setting up jump boxes on AWS EC2. Strange in that one works perfectly and the other fails, but the second is a clone of the first with the only difference being the ...
0
votes
1answer
89 views

Securely sharing SSH access in a team with SSH bastion

I need to share SSH access to a number of servers with my teammates and looking for a secure way to do it. I came up with a configuration involving a SSH bastion server, but not sure how (and if) it ...
0
votes
1answer
31 views

Setting MACs setting in /etc/ssh/sshd_config on Amazon Linux

We are going through the process of hardening Amazon Linux 1 based on CIS. Control 5.2.12 states under "Expected Values" : The following List String value(s) X indicate the current status of the ...
0
votes
0answers
78 views

ssh connection refused from mac os x to linux server (works for others)

Starting today, my Mac (OS/X El Cap) refuses to connect via ssh to several remote servers we manage at an ISP. Others in our group can still connect to it using ssh (as I could through yesterday), ...
0
votes
0answers
51 views

Pass shell script to cygwin ssh from mac with arguments

How can I run a shell script from mac on a Windows openssh installation and pass arguments? This is what I currently have: ( cat run.sh ) | ssh -t user@host How can I modify this to pass arguments ...
0
votes
1answer
37 views

SFTP slow with high latency

Server has a 1Gbps uplink speed, local PC has a download speed of 100Mbps. Latency is 89ms. SFTP speed while downloading a single file from the server to the PC maxes out at 2.5MB/s, even though ...
1
vote
0answers
57 views

Ansible ssh forwarding is fine while adhoc, but failed in playbook

After much hair pulling and head banging, I can't seem to figure this one out. I am trying to get Ansible to clone/checkout a private repo on a remote machine, and decided to go with SSH forwarding ...
-1
votes
1answer
41 views

after Disabled Bitnami banner, Apache not running, Httpd could not be started

I went to restart Apache after disabling the banner with sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1 now Apache won't restart ~$ sudo /opt/bitnami/ctlscript.sh status php-fpm ...