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
31 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
9 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
63 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
31 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
31 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
41 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 ...
-1
votes
0answers
36 views

PuTTY SSH dropouts while connected to Virtual Box hosting Ubuntu 14

I'm currently experiencing consistent SSH "dropouts" when logged into a Virtual Box guest install of Ubuntu 14 (64 bit) via puTTY (version 0.65). I've run other virtual machines using the same ...
0
votes
1answer
19 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 ...
0
votes
0answers
7 views

How do I discard unwanted fail messages from an ssh command? [migrated]

I'm trying to avoid printing messages to the console received when a lun is not found during an ssh command. SSH is to a NetApp filer. Command is being run on a Solaris 10 host. Here is some of the ...
1
vote
0answers
33 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
16 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
30 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
0answers
16 views

Why would rsync be limiting syncs to ~252Kilobytes?

Here's a head scratcher for you... or at least it is for me. I am transferring a Wordpress site away from WP Engine to an Amazon instance. I am trying to upload the original Wordpress files from my ...
-1
votes
1answer
34 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
51 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
64 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
35 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
47 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
27 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
16 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
169 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
127 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 ...
-1
votes
0answers
17 views

What is reliable way to set up microservice architecture with IoT devices?

There is many ETH connected devices, behind many different NATs. I want to be able to send and receive messages: Server <> IoT devices using REST-like services. My current solution is to have SSH ...
0
votes
1answer
27 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
36 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
26 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
22 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
46 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
0answers
30 views

SSH does not show my typing

today I rebooted my server and since then ssh does not show my typing. It executes everything I type in the ssh console, but it does not show the entered characters. What went wrong?
0
votes
0answers
3 views

Cygwin SSH : Name or service not known error [migrated]

I'm using cygwin for windows. I recently upgraded my working cygwin environment to the latest version. When i try executing a batch file using the command ssh userid@hostip"/home/userid/Trigger_test....
-3
votes
1answer
29 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
34 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
57 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
37 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
28 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
1answer
31 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
9 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
50 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
27 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
12 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
65 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
25 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
36 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
19 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
72 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
87 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 ...