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)

1
vote
1answer
24 views

VPN Tunnel Migration

I need to do a VPN tunnel migration from 1 Cisco Asa to another one on 20 remote routers. I wrote a little script that can automaticaly migrate the routers to the new ASA. However, when I run this ...
2
votes
1answer
117 views

A proper way to create a chrooted SSH on CentOS 7 [closed]

There are a lot of tutorials of how to create a chrooted SFTP, but I would like to use SSH, because it is much faster to simply wget, unzip, mysql and mysqldump than tossing around the FTP and ...
0
votes
1answer
26 views

Can you configure per-network SSH settings?

I'm talking about ssh_config(5). I wonder if you can define a config section or file based on the currently connected network. I'm thinking about that scenario where the corporate firewall blocks ...
0
votes
2answers
29 views

ssh connection from linux via windows to server

I have a linux computer and a windows computer which are connected to different networks. I would like to connect from my linux machine to a remote ssh server. From my linux computer I can access ...
0
votes
0answers
37 views

What are the ways to control banners on solaris 10 for scp?

I work with a farm of solaris 10 servers with some inconsistent behaviors in terms of displaying banners/motd. This time, I am trying to do scp from one server to another. Between some servers I get ...
0
votes
1answer
6 views

Openssh in VM authenticate using Pageant on host

Update: It looks like the network design was completely wrong and the auth flow should be the other way round instead. So this question is moot now. Current setup: Linux VM (assume common and most ...
3
votes
0answers
48 views

can't run remote ssh command without heredoc [migrated]

I can't get this command to work: user@server:~: ssh otherserver bash -ic 'source .profile; some-aliased-command' Variations I tried user@server:~: ssh -t otherserver bash -ic 'source .profile; ...
1
vote
1answer
26 views

Rsync over ssh folder depth limit?

i'm working on a server migration and run into the following problem: I'm running rsync to migrate all the data but for some reason there is a folder depth limit... This is done via rsync over ssh ...
-4
votes
1answer
34 views

port 22: connection refused [closed]

I am new to OSX, and I am trying to remotely log onto a computer at my school from home. My friend showed me how to use ssh and I was successfully able to log into the computer while I was working ...
0
votes
0answers
20 views

How to add a domain user to passwd for OpenSSH in Cygwin?

I have OpenSSH installed on a Windows Server machine (package from MLS Software). I want to add some domain user to the passwd file. I do mkpasswd -d -u username, but the program just hangs because ...
0
votes
1answer
28 views

How to ensure ssh via cgroups on centos?

When some cpu-intensive processes are running on the server, chances are that we could not log in to this machine with error 'operation timeout' via ssh command. According to this post answered by ...
0
votes
1answer
18 views

SSH: Login to local pc by key

I got a little problem. I'm using apt-dater to keep different linux-systems updated. Apt-dater uses ssh to login to these systems - there's no problem by doing this. To connect to localhost, the ...
0
votes
0answers
27 views

SSH tunnel is up, but cannot connect to database

I am working on a project where we are using an SSH Tunnel with port forwarding. Our server contains a website which references a database on our customers server. We have established an SSH ...
0
votes
0answers
12 views

expect: does “” (spawn_id exp70) match glob pattern [migrated]

I have written an expect script that works perfect for testing passwords on our network until it has looped through my list quite a bit, then the debug output shows that there is nothing to match. ...
1
vote
1answer
25 views

SSH Tunnel issues

Our setup is as follows; - 2 tomcat servers hosting sites - 1 load balancer - SSH connection to client server which contains database This approach has worked fine with the exception of one client ...
0
votes
0answers
9 views

Reverse X11 Forwarding without SSH on server [migrated]

I want to run an X11 program on the SERVER and display the window on the CLIENT. I have a shell on the server to start with. (This is not an SSH shell, but some cluster computing software) The ...
0
votes
1answer
18 views

RSA Fingerprints on EC2 Server Don't Match Locally Generated Fingerprint

I have an EC2 instance with an elastic IP that hasn't changed in a little while, nor has the ssh key Amazon installed in the main user account used to ssh into the server after instantiation. I ...
1
vote
1answer
46 views

Zabbix ssh needs to force pseudo tty allocation

I am currently trying to configure an item in zabbix to execute a check on a remote server via SSH. When I run the following command on the zabbix box it works sudo -u zabbix ssh -t root@[remote_ip] ...
1
vote
1answer
13 views

Accept only new file uploads over SSH

We want to send files around between some linux hosts via OpenSSH, but we don't want clients to be able to list / retrieve / modify existing files on the server. In other words, it should be an ...
0
votes
0answers
18 views

SSH Connect to remote computer to query database on local server

I'm having real difficulty with an SSH tunnel to a customer server. This is needed as we are developing a site on their behalf, hosted on our server but referencing the database on their server. The ...
-2
votes
1answer
26 views

How can I resolve/route private hosts over an SSH Tunnel?

I'd like to setup an ssh tunnel from a remote location to a private web server on our LAN. The web server on the LAN is using Virtual Hosts and there is some redirection going on. Sometimes a user ...
1
vote
2answers
37 views

pam_limits: Operation not permitted for sshd

Debian 8.0, pam 1.1.8-3.1, sshd 1:6.7p1-5. I'm trying to permanently increase the maximum number of open files. In /etc/pam.d/ I've got: /etc/pam.d# grep pam_limits.so * atd:session required ...
-1
votes
1answer
22 views

Have distributed hosts auto-connect to central jump box for reverse ssh and vnc sessions [closed]

We're going to deploy info screens in various places. They have a browser running and pull the info via HTTP. To reconfigure them, it would be useful if they connected to a central host from where we ...
1
vote
1answer
67 views

Best practice for managing AWS SSH .pem files within team [duplicate]

We are running a number of environments on EC2 using VPC. In each VPC we have a hardened bastion host configured which is used as the initial SSH entry point into the network. To access hosts within ...
0
votes
1answer
23 views

MySQL: Cannot connect to Server via SSH. 'reading initial communication packet', system error: 0

I am running Debian 8.2 and the install is quite fresh. I try to connect to my MySQL server via SSH using Sequel Pro. I always get this error: Lost connection to MySQL server at 'reading initial ...
4
votes
3answers
483 views

SSH: su root or sudo? [duplicate]

What is the better option: Using su to switch to root or enabeling sudo? Without the use of sudo an intruder would need to know the password (or key) of a user allowed to ssh and then also the root ...
-1
votes
1answer
28 views

What does -ssh mean in SSH Tunnel

A previous employee at the company i work for had set up an SSH Tunnel but I am having some difficulty with it. echo y | plink.exe -ssh -R 24011:localhost:1433 connect@testsite1.fern.io My ...
0
votes
0answers
50 views

How to get git repository from Jenkins on Linux using ssh user name and password

I installed Jenkins and started successfully in EngTemp_server which Linux mint. I installed git plugin and restarted Jenkins I created a new project called Devices and for source code management I ...
0
votes
0answers
60 views

PEM_read_PrivateKey failed

I'm trying to use ssh to log in to AWS from OSX Mavericks and having a hell of a time. I enter: ssh -i ~/.ssh/filename.pem ec2-user@ec2-xx-x-xxx-xx.compute-1.amazonaws.com -v And I get this, as ...
0
votes
1answer
42 views

Strange SECCOMP entries for sshd in audit log

I'm seeing strange entries for sshd in my audit logs along the lines of: type=SECCOMP audit(1433519794.902:46): auid=20003 uid=22 gid=22 ses=21 pid=25136 comm="sshd" exe="/usr /sbin/sshd" sig=31 ...
0
votes
0answers
49 views

VPC EC2 Instances can PING each other, but not SSH

I've setup an SSH with multiple subnets. I have an instance in my public subnet (Subnet A) built from an AWS NAT AMI. I have another instance in my private subnet (Subnet B) built from a standard ...
1
vote
1answer
29 views

SSH via Any IP for Specific Username?

I often SSH into a server from home or from work—but when I'm other places, I get this error: ssh_exchange_identification: read: Connection reset by peer After reading around a bit, I've come to ...
0
votes
1answer
22 views

Securing local repository with SSH and chroot

I've got a local Debian repository server in my network and I want my clients to upgrade, update, and install packages from it through SSH. I configured my sources.list so it would look like this : ...
-1
votes
1answer
85 views

Why is scp with compression slower than without?

I needed to transfer a 20 GB KVM vdisk file, storing the root filesystem of a CentOS 6.5 VM, from one lab server to another. The large file size and the fact that I had once compressed such a vdisk ...
0
votes
0answers
31 views

SSH stalled after a while

I am executing some commands over SSH from a linux client (centos 7) toward a server (wind river linux) and for a reason it always stopped ( not completed ). If i executed a command that take short ...
51
votes
1answer
3k views

Can't enter the letter 'e' over ssh [duplicate]

Right now I am experiencing some very, very weird behaviour on a Ubuntu 14.04.2 LTS server I am managing. Connecting to the server over ssh either from cygwin(mintty) or a terminal on a Linux ...
0
votes
2answers
49 views

Mysql, Sequel Pro: access denied, but connecting with terminal is OK

I created a user 'vasya'@'%' with all priveleges on some dbs on a remote server. When I ssh to the server I can mysql -u vasya -p without any problems. However when I try to ssh tunnel via Sequel ...
0
votes
1answer
37 views

Allow certain IP addresses to SSH [closed]

I want to allow only a few IP addresses for making SSH connection. I'm using CentOS 7 with firewalld and OpenSSH SSH client. How can I achieve this?
0
votes
0answers
14 views

Determine if Reverse SSH tunnel is being used

I have a client machine that makes a reverse ssh connection to my ubuntu server. On my server I can see the connection when I run: netstat -nat With the connection open, Users can access the ...
0
votes
1answer
30 views

SSH Tunnel not working

I have a number of SSH tunnels set up between our company's server (hosts website) and our customer's servers (hosts database). For all sites but one the connection is relatively stable however one ...
0
votes
2answers
26 views

Multiple Servers, Multiple ssh Keys, Unique ssh keys for Infrastructure servers

Ok so I've done a bit of googling and haven't come across an answer. We have multiple servers in our environment and around 5 infrastructure servers. Then we have one server that we can ssh to all ...
0
votes
0answers
6 views

iptables presale me to ssh access or calling methods remotely [closed]

I have a linux OpenWRT unit and I can't make an ssh connection after running iptables -F. If I iptables -L -n -v, I find several rules that are automatically inserted and it prevents me from doing ...
0
votes
0answers
9 views

Restrict SSHD to PKI for root but not other accounts? [duplicate]

If I set in /etc/ssh/sshd_config: PermitRootLogin no then I cannot login as root using any method at all. Correct? Is there any way to allow root login only using .ssh/authorized_keys? I want to ...
-1
votes
0answers
17 views

Conflict between SSH Tunnel and Secure Information File Transfer

I am currently working on a site where there is an SSH tunnel between our server which hosts the site and the customers server which hosts the database. This connection was not stable so i added ...
0
votes
1answer
75 views

SSH Connection refused after modifying iptables

Yesterday night I was messing with my iptables doing this specific commands: sudo iptables -F sudo iptables -X sudo iptables -P INPUT DROP sudo iptables -P OUTPUT ACCEPT sudo iptables -P FORWARD DROP ...
1
vote
0answers
51 views

How to setup automatic SSH-tunnel to remote machine in vagrant

I've created a provisioner script which helps me to create an SSH tunnel to a remote machine from within my vagrant box (Ubuntu 14.04 LTS) every time the box is started. Interesting part of my ...
0
votes
0answers
24 views

Issue with SSH on RHEL while monitoring logs from SpectorSoft Server Manager

I have 3 servers running RHEL hosting a number of Java applications where each of them generates a log file which I am monitoring from a Windows-based machine with the use of SpectorSoft Server ...
0
votes
0answers
15 views

-X flag (X11 Forwarding) does not appear to work in Windows [migrated]

I am using Open SSH (OpenSSH_6.6.1p1, OpenSSL 1.0.1i 6 Aug 2014) in Windows 8.1. X11 Forwarding does not appear to be working. The DISPLAY environment variable does not appear to be set. For ...
0
votes
0answers
32 views

How use namespaces and fabric

I am using python and fabric, I have a hypervisor (KVM) defined as follows: env.hypervisor_address = 'hypervisor' # 192.168.0.250 From one VM (in the hypervisor) I want to SSH to other VMs with ...
-1
votes
0answers
22 views

Disable any rule relating to dropping inactive SSH connetion

Can someone walk me through how i could check a firewall for any rules relating to dropping an inactive SSH connection. Have been looking everywhere. Reason i am looking for this is an SSH tunnel ...