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.

learn more… | top users | synonyms (2)

2
votes
0answers
35 views

ssh -t -t sudo displays back my password

My problem is about executing sudo over SSH. I have tried various things, but non works. Here is my script: ssh my-host /bin/bash << EOF # some commands... sudo -u my-user -s -- << EOFF ...
1
vote
0answers
10 views

Ubuntu Samba ssh login changes after successful login

We have many Ubuntu servers running different flavors, but on some of our 14.04 versions we are having a baffling issue with ssh logons. When a user uses ssh to connect, they are prompted for their ...
1
vote
0answers
104 views

How To Configure OpenSSH on a Windows Server 2008 to authenticate against Active Directory

I have installed OpenSSH 7.1 on a Windows server 2008R2 which also is an Active Directory Domain Controller. I need to login with SSH on this machine using credentials from Active Directory e.g., ...
1
vote
1answer
35 views

Do incoming and outgoing ports have to match?

Our server was setup with sftp on a custom port, say, 12345. The connection could be done like so, and required the port setting: sftp -oPort 12345 user@host I understand that is at least ...
0
votes
1answer
34 views

my ssh is OK,but mha ssh check is fail

CentOS 6.6 + MySQL MHA(0.56)\ ssh-keygen -t rsa ssh-copy-id -i /root/.ssh/id_rsa.pub root@slave2 and my SSH check is ok [root@master ~]# ssh -v root@slave2 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 ...
1
vote
1answer
51 views

How to use the ssh server with PAM but disallow password auth?

Many tutorials tell you to config your ssh server like this: ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no but with this setup you cannot use PAM, as i plan to use 2 ...
0
votes
1answer
23 views

allow ssh outgoing with iptables default policy as drop

Good day all My VPS allows incoming ssh connections as required (see rule), however attempting outgoing ssh connections fails to connect with $ ssh xyz.ddns.net ssh: connect to host xyz.ddns.net ...
1
vote
0answers
38 views

RDP Connection Times out Only When Connected over SSH Tunnel

I have an interesting issue. let me describe my setup: I have a server at home that serves as my Virtual Machine Host. All of the computers here are VM Computers, I don't think that makes a ...
1
vote
0answers
18 views

How to force “intermediate” key use in a multi-hop SSH connection with agent forwarding?

I am using a multi-hop SSH connection with agent forwarding enabled at each hop. I want to connect to a destination machine (Machine D) using the key of the preceding hop, not the one from the ...
0
votes
1answer
39 views

Can't SSH from one Digital Ocean droplet to another using Private LAN IP [closed]

I have 2 Digital Ocean instances which have private LAN IP's. The first is 10.130.30.82 and the second is 10.130.35.154. I can ping the second from the first but not SSH. I have copied my keys to both ...
-1
votes
1answer
36 views

Make SSH server to forward connection per user

Is there any way to force OpenSSH (or create a proxy of some kind) to forward one user to one machine and another user to another machine just by the username that he (or she) provided? I've got ...
0
votes
1answer
38 views

How to make ssh based vpn?

I have some problems with making ssh-based VPN. Situation: LOCAL -> GATE -> SERVICES (ssh server) (Many other servers with some services) 192....
1
vote
1answer
57 views

How to reset the sshd config to default in Linux Redhat

I need the very first version of the ssh config. Located in /etc/ssh/sshd_config. Unfortunately the current ssh config has been changed a few time by other developers and it is hard to understand ...
0
votes
1answer
70 views

Unable to connect to Postgresql on a server

On Digital Ocean I'm able to connect to Postgresql: psql -d my_db -U my_name for which it asks me a password and I get in successfully. But from my local computer I'm unable: psql -d my_db -U ...
1
vote
0answers
36 views

I'm struggling to install darkstat on an Amazon EC2 server running Amazon Linux. Any tips?

Hello and thanks in advance for reading through this question. Disclaimer: I'm still quite a newbie when it comes to managing a server. I'm running an Amazon EC2 server (which is running Amazon Linux) ...
2
votes
1answer
50 views

SSH works both ways, but scp and rsync only one way

I have been using SCP and rsync to transfer some files between two servers using SSH keys. Suddently SCP and rsync don't work anymore from server 1 to server 2. They don't give any error or ...
0
votes
1answer
33 views

SSH to other Azure Linux Servers from jump server

I provisioned a stack of VM's and during the process I elected to create a jump server. Now I am on the jump server trying to connect to other machines via SSH but I keep getting an error stating that ...
0
votes
0answers
23 views

SSH version 7.2 is showing up as 7.1 in client

We upgraded our Ubuntu Linux 14.04.1 to the latest OpenSSH version 7.2p2. ubuntu@ip-10-1-4-137:~$ ssh -V OpenSSH_7.2p2, OpenSSL 1.0.1f 6 Jan 2014 However, when I try to check the version from a ...
5
votes
1answer
174 views

SSH works with expired Kerberos Password

I have setup SSH - single sign on using kerberos V5. When a user password has expired , it returns 'Warning: password has expired.' and allows the user to login! I even made changes in the /etc/pam.d/...
0
votes
1answer
239 views

Gitlab CI - Deploy via SSH to remote server

I have a Gitlab using Gitlab CI, for a new project to testify about the compiled files and copy via rsync to a production server. The machine where the build of these resources is exec is an image of ...
0
votes
1answer
35 views

How to allow reverse ssh-tunnel connection to my host on demand?

I've set up a reverse ssh-tunnel (no autossh is used right now, but I might be using it)from remote laptop to my pc, but I don't trust much the remote host, as there might be different people using it ...
0
votes
2answers
48 views

scp to Windows2012Server running Microsoft's OpenSSH-server port, fails with `Broken pipe`

Just installed Microsoft-blessed's OpenSSH Window port and it works great for ssh sessions from Linux clients: andrew@debian:~$ ssh 55.55.55.55 The authenticity of host '55.55.55.55 (55.55.55.55)' ...
0
votes
0answers
37 views

Allow domain group ssh access

Centos 7 joined to 2012 R2 AD domain Joined to AD domain with realm join and now I can ssh in as any domain user (ssh server -l domusr@lab.local) I can also login to the local console via domusr@lab....
0
votes
1answer
27 views

Trying to restrict ssh access to domain groups

Centos 7 joined to 2012 R2 AD domain Joined to AD domain with realm join and now I can ssh in as any domain user (ssh server -l domusr@lab.local) I want to only allow certain domain groups to ssh in ...
0
votes
0answers
50 views

IP not showing in /var/log/secure under rhost

I'm trying to get Fail2Ban to block failed sudo -i commands, but the IP is not showing up in the logs. For example when I log into the server with: ssh -i ~/.ssh/id_rsa USER@1.2.3.4 I then use: ...
-3
votes
1answer
30 views

Using PuTTY and SSH but recieve permission denied when creating commands. [However I am able to log in to SSH]

I keep getting permission denied errors when attempting a command. I need to access the error log for the server and mysql due to a website meltdown. eek. As far as i'm aware I am able to login to the ...
0
votes
1answer
59 views

rsync: connection unexpectedly closed - No tty present

I'm having issues trying to rsync files over from a build server to a web server. the command im running is rsync -e "ssh -i ${HOME}/.ssh/id_rsa" --rsync-path="sudo rsync" -avh --chown=nobody:webdev ...
1
vote
1answer
67 views

SSH orphaned processes

On some VMs, it looks like every ssh session ends up as an orphaned process upon exit. I can reproduce it by just login through ssh onto the machine, then doing exit or ^D, then with ps -elf | grep ...
2
votes
1answer
38 views

Combining multiple OpenSSH servers into one

I have 3 OpenSSH servers and I want to have only one. I have created a new server, and migrated all the accounts/data from the other 3 onto the new server. I now intend to update the DNS records for ...
2
votes
2answers
33 views

SSH tunnel for 3 hops and copying files

I've managed to do ssh tunnel just for two hops ssh -L 1234:serverB:22 user@serverA scp -P 1234 user@localhost:/file /file Now I need to go from localhost -> serverA - >serverB ->serverC And to ...
0
votes
2answers
42 views

Network timeout errors with Amazon EC2 instance after first 10 minutes?

I create a new instance. Happens for both Amazon Linux or Ubuntu instances. I didn't try a windows instance. Sometimes, I can log in once via ssh(putty). I do some cd .. and ls commands but that's it....
0
votes
0answers
11 views

High cpu usage by 'root' in Ubuntu VPS server [duplicate]

My server was working fine until last week. But I don't know how someone have changed by ssh root password. After that when I checked the CPU usage, it always 160-190% on executing 'top' command. Some ...
-1
votes
1answer
59 views

History with SSH IP-address

Trying configure SSH client connection IP-address to be in history, I have multiple people using one account and I wanna know which person ran command. I have been messing with that around alot and ...
0
votes
1answer
28 views

SSH blocked on non sudoer user can't execute root command

Yesterday i've auto-blocked my root privileges on a remote server. I was trying to enabling ssh access for a non priviliged user (not in the sudoer list) and i've added the line "AllowUsers ...
0
votes
1answer
13 views

SSH Operation Timeout after shutting down a Node.js application

I'm having a weird issue on an EC2 instance on AWS. On this instance, we have a Node.js application that jam the SSH server. When we stop this application, we are unable to connect over SSH to this ...
0
votes
0answers
92 views

Custom file/folder permissions with S3FS?

I have setup an SFTP server using OpenSSH. The home directory for users is /sftp/%user. I'm mounting an S3 bucket at /sftp using S3FS. The problem is that S3FS cascades user permissions down through ...
0
votes
0answers
37 views

Root user permission issues with SFTP and S3FS on Amazon EC2

I have setup an SFTP server using OpenSSH. The home directory for users is /sftp/%user. I'm mounting an S3 bucket at /sftp using S3FS. The problem is that S3FS cascades user permissions down through ...
0
votes
1answer
68 views

query Redshift over multiple SSH hops

I'd like to query an AWS Redshift cluster from an IDE running on my laptop (IntelliJ). This cluster is only directly accessible from an EC2 instance in our VPC. That EC2 instance isn't directly ...
0
votes
0answers
30 views

Random connection problems when connecting to SSH daemon

I'm pulling various git repositories from 4 different locations via ssh / CLI command. A couple of times per day the connection to the git repo cannot be established for always only one of the clients....
0
votes
1answer
96 views

php unable to connect to MySQL via SSH tunnel

I have executed both commands via SSH with no error and than when I try to connect to the MySQL server via SSH tunnel I get no results even if I do a simple query like select * from table. I get no ...
-1
votes
1answer
94 views

Removing 1 line of code from all php files

I can see same code under all php files. Starting from <?php $rfghoh = '*f%)sfxpmpusut)tpqssu6 And end $rfghoh=$yuoopi-1; ?> I am just looking for script using which only first line of ...
0
votes
1answer
34 views

Not allowing a user to ssh within a server with a different account.

Imagine a user is logged in as test@example.com . Now the test user is trying to ssh from the current server to another server using someone else's account. For example : test@example.com:~$ ssh ...
0
votes
1answer
28 views

Unable to SSH with shell into NAS: “error: openpty: Invalid argument”

I have a WD MyBook WorldEdition II (White Light) NAS here. This essentially is a ARM926EJ-S with two SATA drives attached. For quite some time, I was running Debian 6.0 Squeeze on it. Now I recently ...
2
votes
2answers
66 views

passwordless ssh for all machines on a network

I know the basic way to allow key based authentication between two servers is by using these three steps: ssh-keygen ssh-copy-id -i remote_host ssh remote_host Using this approach I need to enter ...
1
vote
1answer
318 views

Ansible host “unreachable”: true

I just started learning the basics of Ansible. And facing some problem related to server connectivity via SSH. I created a folder named publich_html and put my code into that folder and changed the ...
2
votes
1answer
33 views

ssh gateway which can proxy to upstream servers based on user name?

Every user has a dedicated machine, but is not exposed to the outside world. The 'gateway' is the only system that is exposed. The user has no idea of this setup. He just does ssh username@gateway ...
0
votes
1answer
60 views

Forcing OpenLDAP connections to use STARTTLS not allowing user to login

I have a basic OpenLDAP server running on Ubuntu 16.04LTS which authenticates users perfectly fine but I really wanted to make it more secure so I decided to use STARTTLS and How To Encrypt OpenLDAP ...
0
votes
0answers
61 views

Configure SFTP with OpenSSH and an AWS S3 Bucket mounted via S3FS on Amazon EC2

How do I allow multiple SFTP Users with S3FS and OpenSSH? Everything works, except SFTP Users don't have permission to write to their Chrooted Home Directory: remote open("/some_file"): Permission ...
-2
votes
1answer
35 views

Unable to SSH to AWS on home network?

I am not exactly sure if this is the right place. I have an AWS EC2 instance which I am trying to access using putty on windows 7. I have been doing it using my phone hotspot successfully. But it ...
1
vote
1answer
37 views

Remote ssh login causes local login to freeze?

I have a Cent OS 7 server running. I log into it from a local-network laptop using 'ssh -X', which works just fine. I go down to the server room and connect the rack monitor to the server, the welcome ...