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)

14
votes
1answer
931 views

PuTTY typing its name into the console

I was doing a MySQL dump over SSH using Putty, and now it is just typing PuTTY over and over again into the console, Ctrl+C doesn't do anything. Does anyone know why this is happening?
3
votes
2answers
1k views

SSHD - blocking password authentication

On several systems I have this sshd_config Port 22 Protocol 2 PermitRootLogin no StrictModes yes PasswordAuthentication no ChallengeResponseAuthentication no MaxStartups 2 AllowUsers john joe Can ...
1
vote
1answer
350 views

Sending traffic across two lan, trough port 80 and revese SSH tunneling. How to setup server

Im want to send traffic over to Host B on port 3000, i have access to all nodes in this drawing, the only port that is open between these two lans is port 80 from Linux Box B to Linux box A. so i do ...
1
vote
3answers
324 views

Another SSH Tunneling question

Here's the Diagram Server A ----> Server B <----- Laptop So basically Server A and Laptop can connect to Server B directly but you can't establish a connection from Server A to Laptop directly, ...
2
votes
5answers
2k views

Run local script over ssh

silent ssh is setup from server A to server B (and some 500 other servers) I have written a script on server A (shell and perl) that I want to execute via ssh on server B (and the other 500 servers). ...
1
vote
0answers
362 views

Slow first login to a AD-joined Samba box

I have joined my first Debian box to an Active Directory (2008 R2). It works, I can log in with AD credentials, browse Samba shares. There is just a problem with the time it takes for someone to log ...
2
votes
1answer
12 views

SSH authentication based on existing OpenVPN tunnel

I have a single CentOS server, and several Windows clients that should connect to it, from remote. I've successfully setup OpenVPN (with Public Keys), with which the clients connect to the server; and ...
3
votes
1answer
77 views

Why would a ssh connection fail to connect with whole proper setups?

Using Ubuntu Server 14.04 I got ssh server running on port 2222 (they asked it like that at building). I already got whole setups reviewed and nothing seems to be ok. This is what's set up: At ...
1
vote
1answer
2k 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 ...
0
votes
0answers
12 views

running a command on multiple remote servers with ruby

I have multiple servers attached to an AWS ELB or just multiple servers with the same TAG:name 'XXXX' I would like to be able to run a command on all of the servers in parallel. first thing that ...
0
votes
1answer
30 views

Ubuntu SSH connections don't close

We have a connection to one of our servers from an external party. This party logs in using sftp and uploads some files. The sessions are not closed by that party and they don't know how to get that ...
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 ...
2
votes
1answer
27 views

Selinux semanage delete or modify chain

I use on all my server port 24 for SSH. After change port i got error because Selinux block server SSHD restart 4 08:08:02 kvm452 sshd[18297]: error: Bind to port 24 on 0.0.0.0 failed: Permission ...
0
votes
0answers
19 views

Connecting my VPS with SSH tunnel [on hold]

I want to create a SSH tunnel to my vps on OVH. I've tested using putty + firefox, and I got it working. Now i'm trying to use Proxifier to use the tunnel with every connection. Sadly, it gives me ...
0
votes
1answer
37 views

Is there anyway to do ssh on a VM with a local IP address?

Scenario :I am using KVM as a hypervisor and Ubuntu as guest and host OS. There are many VMs on a PM and I am assigning IP addresses to those VMs using NAT. To create VMs I am using a baseimage. So ...
0
votes
1answer
37 views

Why SSH allows me to create multiple local tunnels on same port?

As you can see I get error message when I try to create another tunnel listening on local port that is already used but the tunnel is created. Can I force ssh to not create tunnel on given port when ...
11
votes
3answers
7k views

What does “Normal Shutdown, Thank you for playing [preauth]” In SSH logs mean?

Recently, My SSH log summaries for my Ubuntu 12.04 servers in Logwatch have started showing entries for "11: Normal Shutdown, Thank you for playing [preauth]" along with the "11: Bye Bye [preauth]" ...
1
vote
1answer
29 views

SSH connection slow over some networks [on hold]

Can anyone tell me why sometimes when I connect by SSH to a linux server network (in my case), where the network connection from my remote location is of poor quality, why it is often unusable but it ...
0
votes
0answers
14 views

(KVM) virt-manager stuck in password prompt after open VM

so i installed a fresh ubuntu server 14.04 with KVM, i'm connecting with my other ubuntu machine using virt-manager. so after i had permissions problem creating a new VM, i uncomment user="root" and ...
1
vote
1answer
2k views

Cannot connect to Openstack Instance via horizon, but SSH works?

I've got an OpenStack deployment running inside a VM for testing purposes. My setup is as follows: Host Ubuntu x64 with Virtualbox -> Guest Ubuntu x64 with OpenStack -> Ubuntu X64 Server Test ...
6
votes
3answers
6k views

How to fix corrupt packet error for with rsync for (relatively) large files?

Trying to update files on a server, with the rsync command: rsync -ravq -e "ssh -o ConnectTimeout=2 -o ServerAliveInterval=2 -ServerAliveCountMax=2" --delete ./local_dir user@$SERVER:/dest_dir ...
2
votes
1answer
21 views

Set Initial Remote Working Directory in SFTP

I am running Amazon Linux AMI (Red Hat derivative), and am creating a new SFTP server using OpenSSH. I would like for the SFTP user to be restricted to a directory, and to be able to write to the ...
2
votes
1answer
22 views

SSHD applying different PAM rules for localhost connections

I am attempting to implement Yubikey auth via SSH. I've edited my /etc/pam.d/sshd file as follows, and it seems to work while connecting locally (ssh user@localhost): #%PAM-1.0 auth required ...
1
vote
2answers
78 views

Permission Denied (Publickey) from OS X to Ubuntu

I know this question has been asked more than a few times, but I can't work it out on my machine and I feel like I have tried everything. I want to log into my ubuntu machine with ssh using a public ...
2
votes
2answers
908 views

Setting up a chroot sftp on debian server

I'm trying to allow a user "user" to access my server by either sftp or ssh. I want to jail them into a directory with chroot. I read the instructions here however it does not work. I did the ...
0
votes
1answer
18 views

Automatically forwarding from Bastion to next server?

We at work use Bastion in our VPC to connect to several private servers, I have set up aliases (ssh host aliases) to speed up the process of bouncing to the next server, but this is a slow process and ...
0
votes
0answers
17 views

Mounting NFS server through SSH reverse tunnel

Here is my setup: Office computer in a network, with no way to access from outside, (OC) embedded computer in the field (FC) Server in the office, containing data to which the field computer needs ...
-1
votes
0answers
5 views

ssh-add issue Could not open a connection to your authentication agent

I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why. This is the console's output : http://hpics.li/807f3fe I'm sure that ssh agent is running. For ...
0
votes
0answers
16 views

SSH tunnel seems to be bound to multiple IPs

I am using a SSH tunnel to a remote machine using plink.exe in Putty on Windows 8. I am also running a web application using the same port. So to avoid any port conflicts I have bound the tunnel to ...
0
votes
1answer
4k 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 ...
1
vote
6answers
12k views

Reputable web based ssh client? [closed]

I'm connected to a coffee shop's wireless network right now, and I suspected I'd be able to use my laptop and ssh somewhere. Unlucky me they seem to be blocking everything but web traffic (my testing ...
1
vote
2answers
207 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 ...
1
vote
3answers
2k views

SSH tunneling and port forwarding

I ask you to help me establish tunnels to meet the following needs: There is server LocalTest, on which I am root, so I can do anything (Debian SSH). This server is enabled to access (IP filtering is ...
1
vote
0answers
21 views

VPN Connection Failed When Using SSH [on hold]

I want to connect to my server in my office over VPN which has a SSH server installed. But when I connect to the VPN and then try to SSH to my server, the vpn connection closed suddenly. What is the ...
0
votes
0answers
9 views

Pulling Read restricted files from a remote system with rsync and sudo

A remote system generates statistics files every 5 minutes and places them in a certain directory. At any given time there are 1000+ files in that directory. Every 5 minutes I want to copy the ...
4
votes
3answers
821 views

Is there any way to use session multiplexing (Control Master) from windows?

On our Repository server adding a ControlMaster to the ssd/config file (creates socket?) resulted in a 50x transfer speed increase from roughly 2.5 seconds averaged to 0.05 seconds average. The ...
0
votes
2answers
3k views

DES warning message when connecting to Cisco ASA via SSH

I had to replace a Cisco ASA 5510 that died. I have everything back up and running however when I connect to the ASA via SSH (through Putty), I receive the following warning message: "The first ...
0
votes
1answer
10 views

Modify fail2ban failregex to match failed public key authentications via ssh

fail2ban doesn't recognize failed public key ssh logins and I assume that this can be solved by modifying the failregex of /etc/fail2ban/filter.d/sshd.config to match the following line: <date> ...
0
votes
0answers
17 views

failed ssh logins DOS: pam_systemd Failed to connect to system bus

After a couple of weeks of script kiddies attempting to login via SSH to my CentOS 7 box on EC2, it eventually stops responding on that port (and to http on port 80), and I have to reboot it. The ...
1
vote
1answer
30 views

/etc/init.d/ssh restart does not reload the configuration

I've added a chroot configuration to my /etc/ssh/sshd_config. I reload the configuration file using /etc/init.d/ssh reload, then try to connect using an SFTP client, but nothing changes, the user is ...
0
votes
1answer
18 views

IPTables not working as expected for ssh control

I have the following rules, which for testing is all that I have: iptables -F iptables -A INPUT -p tcp --dport 22 -j DROP iptables -A OUTPUT -p tcp --sport 22 -j DROP iptables -A INPUT -i em1 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
57 views

OpenSSH in Windows Server 2012 R2 [closed]

I'm trying to create a complete FTP server on Win 2012 r2 using IIS FTP (for FTP and FTPS protocol) and OpenSSH for SFTP protocol. I'm searching for several documentations but I'm discovering ...
-1
votes
2answers
40 views

Chroot user to an existing folder witch parent owner isn´t root [closed]

We have moodle installed on our company and due to big SCORM packages + slow conection + proxy, I usually upload them with SFTP with my root user. Now, I want to give users a way to upload files by ...
0
votes
2answers
3k views

check_ssh executed from Nagios server returns “Server answer: ”, nothing else

Commmand works on the host I need to monitor (its IP is denoted as $HOSTADDRESS$ here): [root@host ~]# /usr/local/nagios/libexec/check_ssh localhost SSH OK - OpenSSH_4.3 (protocol 2.0) However, on ...
3
votes
2answers
76 views

Is it possible to ssh or rsync into a system whose file-system has remounted itself read-only?

I need to login to a system that went into a read-only state. I can ping it just fine but I can't ssh in anymore. Is there some special command line flag/parameter I can pass ssh that lets me login ...
4
votes
6answers
5k views

SSH - set env vairables by every connection - godaddy shared host

My problem is, that I have to set env variables (like GIT_EXEC_PATH) on a server. I need that variables by every connection (so by bash and by remote commands either). I managed to set those variables ...
-2
votes
0answers
8 views

Cant connect to remote machine 'ssh_exchange_identification: read: Connection reset by peer' [duplicate]

I have right to remote server, For some reason I have to give access to my tomcat user. But by mistake I had changed user and group to tomcat7 user by below command: chown -R tomcat:tomcat / Then I ...
0
votes
2answers
36 views

SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES) [closed]

I've changed the password for admin user of mysql in phpmyadmin and now I can't access neither my Plesk panel and neither mysql via ssh. The error it triggers is: SQLSTATE[HY000] [1045] Access denied ...
0
votes
1answer
3k views

very slow connection to ssh server from client (but not other servers)

I have an Ubuntu 12.04 laptop that is taking so long to connect to various servers (in different data centres) that it seems like a bit of a lottery whether I'll actually get a connection. If I ...