Questions tagged [ssh]

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.

Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for Telnet and other insecure remote shells, which send information, notably passwords, in plaintext, rendering them susceptible to packet analysis.

It's important to note that there are two versions of SSH (1 and 2), and that version 1 is no longer considered secure, and should be replaced by version 2 where ever possible.

More information, including the more notable SSH-1 vulnerabilities, can be found at the Wikipedia page for SSH.

8868 questions
4
votes
3 answers

Can't connect to SSH/SFTP - but only in certain programs

I'm using UltraEdit (Windows) to edit files on remote SFTP servers. For some reason I can no longer connect to one of those servers. Here's what was changed: The server was moved (and updated) from one VM to another - usually this only prompts…
Woodgnome
  • 203
  • 1
  • 8
4
votes
3 answers

How to SSH after remotely restarting Redhat and enter recovery mode?

I need to enter recovery mode of my redhat box which is running remotely on a virtual machine. I use RedHat 5 64-bit Enterprise Edition. I am logged into the box using SSH. I can restart using the restart command but I need to know if I will be able…
akshitBhatia
  • 141
  • 1
  • 2
4
votes
1 answer

Connection error in bitvise ssh client

Iam able to connect to ssh server host on openshift using putty but while using the same setting in bitvise ssh client i get the folowing error - 01:47:18.424 Connecton failed. getaddrinfo() failed. Windows error 11003: A …
warl0ck
  • 141
  • 1
  • 1
  • 6
4
votes
2 answers

Does Terraform Deal with “known_hosts” upon changing infrastructure? If so, how?

I'm very new to terraform so maybe this is not a great question. But I'm running through [this Amazon EC2 example] and at one point it tries to SSH to the machine, I assume to install nginx. This is always bombing out for me, and I just see repeated…
Randy L
  • 147
  • 1
  • 8
4
votes
1 answer

SSH connection refused/error message

I have a systems which has multiple users but only few selected users are allowed to login to the system at a given time through SSH (or otherwise). I am using "passwd -l/-u" command to lock and unlock users, and allow only one user at a…
4
votes
0 answers

Openshift SSH permission denied through corporate proxy

am trying to connect local->cntlm->company proxy->rhcloud host. I have the keys uploaded to rhcloud and GitHub. With the current configuration with corkscrew i am able to connect to git via ssh. However ssh -v to host doesn't work. The fingerprint…
winkidzz
  • 41
  • 2
4
votes
1 answer

OpenVPN client on Amazon EC2 leading to SSH disconnect

I am running Ubuntu 14.04 on Amazon EC2. I'm trying to connect the EC2 instance to OpenVPN so the traffic routes through the VPN. When I run the following: sudo openvpn --config .ovpn, the SSH connection disconnects, and I'm unable to…
henrybai
  • 41
  • 3
4
votes
1 answer

How many SSH private key to setup for multiple servers?

The general process is to generate a pair of public and private keys and upload the public key to the server for SSH connection. Then, if I have to manage a large amount of servers, am I supposed to: Reuse that public key for all…
Shiji.J
  • 186
  • 9
4
votes
1 answer

How configure environment variable with AcceptEnv

In /etc/ssh/sshd_config, there is an option called AcceptEnv that allows the ssh client to send environment variables. I need to be able to send a large number of environment variables, how can i do this?
Saryas
  • 43
  • 1
  • 4
4
votes
1 answer

A proper way to create a chrooted SSH on CentOS 7

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 phpMyAdmin. The method should be also clean (without the…
amq
  • 733
  • 2
  • 6
  • 9
4
votes
3 answers

SSH Connection through a Reverse (Remote) SSH Tunnel

This is the setup I have : a Linux box A inside a LAN behind a firewall. a Linux server with a fixed IP address that is accessible from the internet. I want to be able to connect to the Linux box that is behind a firewall from afar via ssh. I have…
Ethan
  • 43
  • 1
  • 3
4
votes
1 answer

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 then they use SSH to do the actual work.…
Zvika
  • 233
  • 5
  • 10
4
votes
1 answer

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 initial directory that is shown by their SFTP…
pgn674
  • 61
  • 1
  • 1
  • 3
4
votes
2 answers

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 into a system that has gone into read-only…
htfree
  • 483
  • 4
  • 9
  • 21
4
votes
1 answer

Having trouble ssh into ec2 instance with elastic ip address

I have a new ubuntu EC2 micro instance in a VPN with what i think should be access from the outside world to ssh. $ ssh -i ./sendy.pem ubuntu@52.5.229.252 ssh: connect to host 52.5.229.252 port 22: Operation timed out One thing that looks wrong…
AJcodez
  • 233
  • 1
  • 4
  • 11