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
48 views

Cannot Execute Certain Commands Over SSH

I have placed a batch file called "CrackHash.bat" in my system32 directory on my Windows computer acting as a server with freeSSHD installed. I can run this batch file just fine through the cmd window ...
1
vote
1answer
216 views

SSH over VPN connection

We have an AWS EC2 server that we've configured to be only accessible (via SSH) from within our office network. Obviously this isn't ideal for remote arrangements where someone has to connect to the ...
-1
votes
1answer
44 views

Create user account on many servers

I have a users.txt with the following content: ip1 user1 password1 ip2 user2 password2 .... ipN userN passwordN I want to create one user on each of these servers. I want to use this script on each ...
0
votes
2answers
59 views

How to record ssh session and email them periodically?

Is there anyway to record all remote SSH client's activity on a linux machine and email them on a periodic basis?
13
votes
3answers
1k views

Enable SSH shell access but disable SFTP access

I've searched for a viable answer to this question, and most of the answers include advice on why to not do it. However, here's the scenario, and what makes it necessary: I have a console app, and in ...
2
votes
1answer
629 views

SSH key authentication using LDAP

In short: Would like a way to do SSH key authentication via LDAP. Problem: We use LDAP (slapd) for directory services and we've recently moved to using our own AMI for building instances. The ...
1
vote
1answer
58 views

SSH from Windows to Jump Server to MySQL [closed]

We have a MySQL instance running on a Linux machine and had to open a tunnel to access the server. This worked fine until admin decided to add a steppingstone / jump server. Now i can't seem to ...
-1
votes
2answers
75 views

“Cannot open SSH Tunnel” on MySQL (corrected)

(help, patience and mercy... begginer lost haha) -Ok heres the deal, im trying to connect a EC2 Instance to MySQL throught SSH in MySQL Worckbrench -I set up the configurations this way SSH ...
0
votes
0answers
19 views

Convenient way to restart server inside vagrant

We have a webserver, that needs nginx and other configurations, so for development we use vagrant. vagrant ssh I want to easily [re]start it, so I use single line ssh commands. vagrant ssh -c "" ...
9
votes
2answers
1k views

SSH MOTD per user

I want to display banner (welcome message) for SSH users with a specific welcome message for each user.
1
vote
1answer
31 views

indirect ssh, connection closed after a single command

I was trying to execute multiple commands through multiple ssh, basically: ssh -t host1 ssh -t host2 ssh -t host3 'cmd1; cmd2; cmd3' I want to execute all the commands on the end host (host3). But ...
-1
votes
1answer
133 views

SSH login works but SFTP login doesn't

I already saw this thread, but it didn't answer my question because it has been left for dead. As the title says, when I log into my VPS with putty, everything works fine. But when connecting with ...
12
votes
1answer
391 views

SSH tunneling is faster than OpenVPN, could it be?

Logically, VPN should be faster than SSH for tunneling, because: It's running on UDP and not TCP (so no TCP over TCP) It has compression However, today I tested Redis replication over both ...
2
votes
1answer
39 views

SSH Remote Forwarding with two hops

How can I make ports forwarded or proxied by ssh available to machines other than the local machine? e.g. machine A connecting to machine B (works) ssh -L8080:some-service:8080 user@machine-B ...
1
vote
0answers
122 views

OpenVAS 7 failing to SSH into a test server

My local machine is hosting a Kali VM. I am trying to run local security tests using the VM's OpenVAS 7 on a server running Ubuntu 12.04.5. When I run SSH Authorization Test I get the following ...
0
votes
1answer
19 views

Easy way to make domain.com/wp-admin/ for all sites on a server accessible only for localhost?

I have problems with attacks to those so thought best would be to limit the access for them only to locahost. But what will be the best (and easy) way to do that?
7
votes
1answer
94 views

How to detect or log interrupted uploads with OpenSSH SFTP server?

I have this problem where a customer of ours has been SFTP-ing truncated data. I'm not sure if the problem is on our end or his. I've enabled SFTP logging but it does not allow me to detect if an ...
6
votes
2answers
1k views

MTU on server accidentally set to 0, can't ssh into it?

My server had some problem with the ssh and I couldn't upload files of size > 10 KB, as scp would hang during the copy. I found a solution for this problem here, and I was changing the MTU, when I ...
1
vote
1answer
49 views

SSH issues: keyfile and host file not working as expected

When I login to server with a key ssh -i /home/me/.ssh/id_rsa server everything goes without glitch. The key is authorized on the server. However if I try to do same from a shell script, I get a ...
-2
votes
2answers
48 views

Restrict SSH access to whitelist IP - what is stopping someone pretending to be from my IP? [closed]

I know I can whitelist a client IP for connecting to SSH on server and then Deny All other IPs. However, seeing as how the packet arriving at the server network interface must include the IP, what is ...
0
votes
0answers
27 views

Forward traffic to MySQL over two+ SSH hops

I am trying to get from my computer through a gateway VPS to the database VPS and leave a forward port open back to my computer so I can access MySQL. For example, using port 9999 on my machine I was ...
0
votes
0answers
32 views

Add ssh credentials from web interface

I'm currently trying to access a mercurial repository from a Jenkins Job. I've already added the ssh private key trough the Credentials plugin and configured the mercurial plugin to use it. The error ...
0
votes
1answer
73 views

Script to Push Files

Script to Push Files Hey Guys, Thanks for always being helpful, I have another issue that I need a little insight on how to fix. See the below script I have and the error I get. I don't understand ...
1
vote
1answer
49 views

SSH -i command not found

I want a run a script located on server 2 from server 1. I am running this command line on server 1: /home/user_x/keys.pem -t -t ec2-user@10.10.10.10 sudo ...
1
vote
0answers
60 views

Nginx error on installing vestacp

I am trying to install vestacp on fresh dedicated server running ubuntu14.04 with nginx installed, however i have tried to remove this using... sudo apt-get remove nginx sudo apt-get purge nginx ...
-4
votes
2answers
31 views

How to run more than one connection on SSH port [closed]

This is a naive question, but I don't know the answer. I have forwarded port 22 on my router to point to my NAS. I also have a Hummingboard server which I'd also like to access through SSH. How can I ...
0
votes
2answers
153 views

start sshd with /usr/sbin/sshd in centos

I am new in linux but newest in Centos. using CentOS release 6.6 (Final) I can start ssh service via service sshd start and get this output Generating SSH2 RSA host key: ...
0
votes
1answer
35 views

Restore root access CloudVPS Server

I have a VPS on CloudVPS that I used to access through SSH with RSA keys. The server is running Nginx. However, Coda 2 corrupted the folder holding the keys, making me unable to access my VPS. ...
1
vote
1answer
57 views

auth.log indicates error with JSchExcpetion?

I have a fairly minimal setup server, and it doesn't allow password authentication, only using keys. And it definitely doesn't have Java installed. Normally I don't pay any attention to the thousands ...
0
votes
3answers
162 views

Why ssh uses .ssh/id_rsa as a pubkeyauthentication?

When trying to ssh -v 'somehost' Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/kaldown/.ssh/id_rsa debug1: ...
0
votes
1answer
42 views

ssh key authentication - port other than 22 involved

I've noted this entry in auth.log Accepted publickey for myuser from ip_address port 51150 ssh2 That entry corresponds with my ssh-key-based login event. SSH is listening to default port - 22. ...
0
votes
1answer
128 views

Can't ssh into Centos vm in Openstack

In Openstack, I can spawn ubuntu and fedora images and ssh into them. But when I am trying the same with Centos image (6.5 or 7), then my key is refused (or even ignored) and I am proposed to use ...
0
votes
0answers
44 views

Solaris SSH Server Log Destinaton IP Address

To stay compliant, it's required that my Solaris 10 SSH server log the destination IP address in addition to the existing port logging. Is it possible to add the destination IP address in the authlog? ...
0
votes
0answers
36 views

Multiple public RSA keys on server, sharing same SSH login details

At my company we use SSH to access a server in order to deploy projects through GIT. We share the same SSH login details to access the server. When I log in I always get prompted to enter the ...
0
votes
1answer
111 views

Chrooting Shell Environment on debian wheezy

I created a chrooted user on a directory /home/jail, Inside my /home/jail are the bin,dev,etc,home,lib,lib64 and usr directories. /home/jail/ {bin,dev,etc,home,lib,lib64,usr} are all owned by ...
2
votes
2answers
327 views

Prevent SSH connection lost after logging into VPN on server machine

I encountered an issue that I can't deal with. When I'm logged onto an VPS over SSH and try to estabilish VPN connection on that VPS, the SSH connection between VPS and my machine get lost. I assume ...
0
votes
0answers
56 views

Why ssh tunnel cannot create in the virtualbox or qemu with force mode (-f)?

I try on the dedicated server root@debian:~# strace -e open -f sshpass -p guest ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null guest@198.51.100.11 -C -N -D 127.0.0.1:22220 -f [pid ...
1
vote
1answer
509 views

Ansible - Try to ping connection between localhost and remote server

I am beginner in Ansible and I am trying to learn it. I use the ansile docs Getting Started and I am faced with problem which stopped me. My problem rely on that when I've tried to use a command ...
1
vote
1answer
54 views

Ensure SSH is responsive under heavy load?

I've got a lot of Linux servers which easily become unresponsive over SSH under heavy load. Under heavy IO, swapping, CPU usage, etc, SSH connection often time out failing to connect. Its difficult to ...
0
votes
1answer
82 views

Executing local function code on a remote server

I am updating about 20 bash scripts that perform various server-side operational tasks, checking status / sending reports etc. On some environments these scripts will run locally, on others they need ...
0
votes
1answer
50 views

Sudo-io log output shows garbled text

We have set up in our servers sudoers config the following configuration in order to log the console output for auditoring purposes Defaults:%administrators log_output Defaults logfile=/var/log/sudo ...
-2
votes
2answers
55 views

Why .ssh directory permission need to be 700 for passwordless ssh

I am following the steps here to SSH without password In order to login from userA@hostA to userB@hostB, the ~/.ssh/authorized_keys at hostB needs to contains the public key of userA@hostA. When I ...
0
votes
0answers
54 views

Azure java sdk : permission denied(public key) when trying to ssh to vm

I have created a virtual machine using this sdk: https://github.com/Azure/azure-sdk-for-java. While I can normally ssh to virtual machines created by hand, the ones created by code using this sdk ...
2
votes
1answer
207 views

SSH terminal hangs (tty_ldisc_hangup)

The SSH console is timing out and I'm not able to execute any commands. I've noticed that I can execute commands remotely but when I try to allocate TTY it hangs: Works: $ ssh root@example.com ...
1
vote
1answer
41 views

After cloud server rebuild, why does SSH give me an ssh_exchange_identification error?

We recently had to rebuild one of our cloud servers (we use Rackspace). All servers are almost identical, and a snapshot of another server was used. Once live again, I allowed a cron job to run which ...
0
votes
0answers
16 views

How to Set a Default Remote Path for Each Website on One Server? [duplicate]

I searched and read the previously-asked questions like this one change directory automatically on ssh login, or another one suggesting editing ~/.bash_profile, but as I understand, that will work if ...
1
vote
2answers
116 views

SSH works locally but not remotely

Recently ran into a hardware issue on my CentOS machine. After a PSU, ram, mobo and CPU replacement I think I have the hardware issue resolved. However, I believe I have a network configuration ...
-2
votes
3answers
41 views

Is it possible to use key based auth AND interactive auth with SSH? [closed]

I'd like to use key based auth so I can SSH to linux systems without needing to specify a password and just worry about keeping the key file safe, but there's a chance that someone else (who that ...
1
vote
1answer
59 views

Restrict SSH login to public key from public networks, but allow password from internal networks

Assume UserA is allowed to log in by SSH to a server from public networks as well as from within private ones. Is there any option to restrict password-enabled logins to the private networks while ...
0
votes
0answers
475 views

(reverse-) ssh connection “time out during banner exchange”

I have set up a few 100 embedded boxes to contact HQ by opening up reverse ssh tunnels, each under a new port. This is mostly working fine, but today I encountered a problem with using the tunnel ...