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)

0
votes
1answer
22 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 ...
0
votes
0answers
8 views

How to enforce the use of google-authenticator on a specfic group?

I've installed google_authenticator on one of our deploy servers (Ubuntu trusty on AWS EC2) and I would like to enforce the use of google two-factor authentication only on one specific group ...
-2
votes
0answers
19 views

How to disable echo on SSH session [on hold]

I would like to disable echo from SSH server on a Linux appliance (running openssh). This is required for machine to machine communication. How can I do that ? Thanks
-1
votes
0answers
11 views

SSH Connection closed by IP

I have been working on this for days now with no result Few people got the same error on this blog but their solution did not resolve my issue I am trying the following on cygwin but with no success ...
-1
votes
0answers
2 views

PuTTy can't establish SSH tunnel [migrated]

I'm trying to set up remote debugging for PHP using Xdebug and PhpStorm. My local development machine has Windows 7 and the remote machine has CentOS 6. I'm following this guide to no avail: ...
0
votes
1answer
13 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
21 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 ...
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
41 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 ...
-1
votes
1answer
23 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
10 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
30 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
10 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
14 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
11 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 ...
-2
votes
0answers
16 views

How to block ssh when not logged into openvpnas

How can I configure my server so that someone who tries to SSH into the server without being logged into the openvpnas is dropped and only people who are "inside" the network (connected to openvpnas) ...
0
votes
0answers
20 views

Synchronize local folder into folder on remote server Amazon EC2 using lsyncd ubuntu

I am straggling all day now trying to setup automatic synchronizing process folder from my local computer (Ubuntu 14.04) to my remote server (Amazon EC2) using lsyncd. This is the error message I ...
0
votes
1answer
22 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
0answers
30 views

Port forwarding/ssh

I have a question about port forwarding. In my case - I need serverB to be able to communicate with serverA over port 9090. The problem is that serverB can't not connect to serverA over this port. ...
-2
votes
0answers
28 views

Remove same php code from all php files [closed]

I need to remove everything between following tags in all php files using ssh <?php $rfghoh = $rfghoh=$yuoopi-1; ?> Thanks
-1
votes
1answer
46 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
31 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
21 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
53 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 ...
0
votes
1answer
40 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
27 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
48 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
19 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
32 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 ...
0
votes
1answer
27 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 ...
1
vote
3answers
61 views

scp to copy file to remote server fails because of permissions

I think my fundamental problem is that I don't fully understand how ssh / scp works. But I don't what to google to try to read up on my question. Problem Description I have created a bash script ...
0
votes
1answer
20 views

Unison / file syncing between servers without using root account

I have setup 3 servers one with a load balancer and the other 2 will host the websites files and I have a replicated MySQL database on both too. I have installed ispconfig on both and it's set to ...
0
votes
0answers
3 views

plink SSH via proxy [migrated]

I can use putty to ssh to a server via my company's corporate proxy. The two forms I fill out are session and proxy, where the proxy is a HTTP proxy requiring username and password. What is the ...
-1
votes
0answers
19 views

How to ssh to ASUSTOR NAS (ADM) with private key?

This is on my ASUSTOR NAS (ADM 2.6.0.R4R1). I generate and upload the key pair as usual: $ ssh-keygen -t rsa -b 2048 -f myNAS $ ssh-copy-id -i myNAS admin@192.168.0.3 Then try to login with the ...
0
votes
0answers
4 views

Is SSH unstable in AdvancedTomato? [migrated]

I'm able to login to my AdvancedTomato router via SSH to update config files. But eventually I find that SSH no longer works. Is SSH in Tomato unstable to the point that it eventually gets hung if you ...
0
votes
0answers
16 views

debug1: read_passphrase: can't open /dev/tty: No such device or address

I'm currently building an app based on Heroku and PHP7. part of my app is to connect to other servers. for the destination server I have gotten an DSA private key with passphrase. since i'm on PHP7 I ...
0
votes
2answers
26 views

ssh always tries to use a wrong rsa key

When I try to ssh to a remote computer I get the following error: Received disconnect from RemoteIPAddress: 2: Too many authentication failures for UserNameA However until recently this used to ...
2
votes
1answer
85 views

cygwin sshd “getnameinfo failed”

I run an Openssh sshd service from Cygwin. When an RSA connection is established: $ ssh Administrator@ZETA Last login: Wed May 11 13:58:50 2016 from 10.1.1.140 -- there is no error message. ...
0
votes
1answer
25 views

Execute postgres function on server from local

I've a postgres database on server. There is an upsert function which takes a file as an input. Is there any way to execute the upsert function from my local without having to scp the file to server ...
0
votes
1answer
35 views

ssh: Could not resolve hostname add: Name or service not known

I created non-sudo user and I can't add ssh key while logined with it: % ssh -vvv add ~/.ssh/mykey OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config ...
0
votes
1answer
28 views

Changing the ssh passphrase on a private key has no effect

I had a not protected by passphrase ssh key which I use to connect with a server. Now I want to add a passphrase to the key, so I've done: ssh-keygen -p and added a new passphrase: Enter file in ...
0
votes
0answers
38 views

Can't ssh using dynamically generated host

I have a shell script that runs a python script to return an AWS IP and then is supposed to ssh into that IP. Simple: DNS=$(python ssh_into_master.py) ssh $DNS It runs the command as it's supposed ...
1
vote
1answer
33 views

ssh gatekeeper script and system calls

I'm using the openssh gatekeeper script from calomel.org to make a semblance of two-factor authentication. I've tried to use a curl to the localhost to send a randomly generated string via text ...
-5
votes
1answer
43 views

Cannot ssh after rebooting VPS [closed]

I reboot my VPS just now then when I logged in via ssh it says permission denied after inputting my password. I have an OVH linux VPS and I can log into it using KVM from the panel. I didn't set any ...
1
vote
2answers
35 views

How to set SSH config to grab part of ssh hostname and use as variable?

I'm SSH'ing into multiple datacenters that are setup identically. Each datacenter has a jumpbox, and behind that there's access to various db servers etc. It's a pain to manually specify entries for ...
-1
votes
0answers
15 views

Wifi, remote connection, mysql

I am having this really strange error on my connection to my mysql server from a remote host. It basically hangs out large queries with blob or throws the following Warning: Empty row packet body; I ...
0
votes
1answer
28 views

enable to access public dns in browser amazon aws

I am a newbie here in this server and networking things. I have signed up in amazon aws and went through some basic documentations. There I could create security groups, instance, and web servers. I ...
0
votes
0answers
6 views

Using vagrant on Windows 7, port forwarding not working [migrated]

I installed vagrant and Virtualbox on Windows 7 and created a Ubuntu 14.04 VM. Everything seems fine, when I start Virtualbox, I can access the terminal in the guest machine, and confirm that sshd is ...
-1
votes
2answers
96 views

Restore file permission on CentOS 7

I managed to messed up server permissions on entire server chown root:root -R / chmod 777 -R / How to fix it? I can't login as root using terminal on that machine it show error "Invalid password" ...
0
votes
2answers
51 views

Getting SHA1 Digest of SSH Public Key

It seems like this should be easy. I run "ssh-keygen -l -f " (the default seems to be SHA1). All of the examples show it printing the hex-formatted digest with a little extra, harmless information. ...