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
0answers
21 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: ...
-1
votes
0answers
11 views

Bind webpage to local port [on hold]

I have a page www.db.no that I want to be accessible through localhost:5900. Is there a way I can bind this web page to this specific port using ssh ? Not just rewrite hosts file.
1
vote
1answer
35 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 ...
298
votes
23answers
416k views

How do I tell Git for Windows where to find my private RSA key?

My GIT setup runs fine in Linux, but when I try to set things up under Windows (using Git for Windows and TortoiseGit), I don't know where to put my private ssh key (or, better still, how to tell ssh ...
2
votes
2answers
849 views

Ansible with Github: Permission denied (Publickey)

I'm trying to understand the GitHub ssh configuration with Ansible (I'm working on the Ansible: Up & Running book). I'm running into two issues. Permission denied (publickey) - When I first ran ...
1
vote
1answer
56 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 ...
-3
votes
0answers
25 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?
-2
votes
0answers
30 views

How to disable echo on SSH session [on hold]

I am developing a secure gateway running Linux. This gateway is to be managed by an IDS server via CLI commands sent via SSH. IDS developer asked to disable characters echo from SSH server on the ...
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 ...
0
votes
1answer
18 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 ...
0
votes
0answers
22 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 ...
-3
votes
1answer
23 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 ...
1
vote
2answers
626 views

netcat / named pipe proxy over ssh

I am used to forwarding a remote service port on localhost using ssh like: ssh -L 2181:localhost:2182 user@server (forward remote host port 2182 to local port 2181) now, from the machine I ssh to, I ...
6
votes
1answer
2k views

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for ...
2
votes
1answer
36 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
1answer
1k views

svn command not found for specific user

I am implementing a system for exporting the source code from my svn server to the client's server (where the web is going to be hosted). I asked my client to install subversion in his machine to be ...
0
votes
0answers
15 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: ...
2
votes
1answer
1k views

connect-to-oracle-db-9i server-using-ssh-tunnel-via-putty

I am trying to connect ORACLE DB behind NAT so i choose SSH TUNNEL via putty so here is the information Global i p example: 122.54.34.12 LAN i p example : 192.168.3.103 ORACLE DB_PORT : 1521 and ...
14
votes
5answers
6k views

SSH from A through B to C, using private key on B

I'm looking for a simple way to SSH from my local machine, A, through a proxy, B, to a destination host, C. The private key that goes with the public key on C is on B, and I can't put that key on my ...
148
votes
7answers
346k views

How to automate SSH login with password?

How to automate SSH login with password? I'm configuring my test VM, so heavy security is not considered. SSH chosen for acceptable security with minimal configuration. ex) echo password | ssh ...
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
1answer
15 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
0answers
112 views

SSH over WAN through reverse proxy to LAN git server

We have an URL to our external IP to our gateway that connects to a CentOS nginx reverse proxy behind which sits our CentOS6 Gitlab server on the company LAN Through this we currently have http ...
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
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
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
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 ...
1
vote
1answer
4k views

Centos set default ftp directory for a user

I am setting up accounts for people to connect to the server through ssh and SFTP. When I test the login, it goes straight to the "/" directory, and I do not want that to happen. I want to make it so ...
-1
votes
1answer
43 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
vote
1answer
34 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 ...
0
votes
0answers
34 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
11 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
15 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
12 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 ...
-1
votes
1answer
48 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
25 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 ...
-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
1answer
22 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 ...
1
vote
1answer
8k views

Able to connect by SSH, but not x2go

I am having trouble connecting to a remote server with X2GO using a DSA key. Connecting works fine over SSH, but when I try to connect with X2GO, it goes immediately to the username/password box and ...
-2
votes
0answers
32 views

Port forwarding/ssh [on hold]

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
29 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
vote
1answer
3k views

haproxy transparent mode on 14.04

As per my previous question SSHD real-ip behind haproxy - I'm now attempting to setup HAProxy to transparently pass the IPs to the backend services. tproxy modules loaded / and supported in haproxy ...
4
votes
1answer
2k views

ssh agent forwarding fails with “Could not open a connection to your authentication agent”

I receive a Could not open a connection to your authentication agent error message when I attempt to connect from an intermediate server to a third server using the agent forwarding option (-A) of an ...
3
votes
3answers
2k views

CYGWin and sshd. Accepts authentication, but won't connect

Everything I find relating to this is the "ssh-exchange-identification:" error. This doesn't happen for me. I get two lines: Connection to localhost closed by remote host. Connection to localhost ...
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 ...
8
votes
3answers
12k views

How set to ansible a default user/pass pair to ssh connection

I am using ansible and I have it configuration in my inventory/all: [master] 192.168.1.10 ansible_connection=ssh ansible_ssh_user=vagrant ansible_ssh_pass=vagrant [slave] 192.168.1.11 ...
2
votes
2answers
2k views

pam_tally2 or pam_faillock account lockout with ssh

I'm running RHEL 6.2. Most users will be using SSH to login using passwords. Some might have keys. All accounts are local. I need to lock users out after N failed password logins. The examples in ...
2
votes
2answers
54 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
3answers
394 views

No authorized_hosts file created

I want to log in without having to enter a password. I have explored my options and generated keys. The next step mentioned is to copy the file contents to authorized_host file. But that file does not ...