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
1 answer

dd command piped over gzip and ssh faster and faster as dd progresses

I am running the following command to copy a LVM from one host to another: dd if=/dev/vg_1/lv1 conv=noerror,sync bs=4M | gzip | ssh user@ip 'gzip -d | dd of=/dev/vg_2/lv1 bs=4M' To begin with I was getting a speed of about 11 MB/s about an hour…
user2284355
  • 455
  • 2
  • 10
  • 24
4
votes
2 answers

SSH key and ip address

A co-worker keeps mentioning SSH keys being associates with an IP address but Im not sure what it exactly means. So i tried generating a SSH key and it had my host name at the end of the file. This discussion can up when we were talking about…
broun
  • 187
  • 2
  • 2
  • 8
4
votes
2 answers

Fixing "Could not chdir to home directory" on a homeless user

Basically I created a new sudoer without a home directory (adduser --no-create-home), but now, everytime I login with it I get prompted with a "Could not chdir to home directory: No such file or directory". Is there a file that dictates where the…
Luiz Berti
  • 155
  • 1
  • 2
  • 5
4
votes
1 answer

X over ssh works for one user but not another

I have a CentOS 6.5 server with the following situation: I can ssh to the root user of this server from a Mac OS X machine. It connects relatively quickly, and allows me to fire off xterm sessions. I can ssh to a different account on this same…
Tony B
  • 254
  • 3
  • 14
4
votes
1 answer

SSH port forwarding to a host that needs to contact a third named host to access MySQL

We customize and support standard web applications that our customers host on managed servers from different web hosters. Usually, the application consists of a web application in PHP and a database (mostly MySQL). For our customers, we want to…
Dabu
  • 359
  • 1
  • 5
  • 23
4
votes
1 answer

Ssh can't resolve host name, but the host command can?

I'm having some weird issue that I cannot understand (I'm trying to ssh to alexus and according to ssh it tells me it cannot resolve, yet when i use host to resolve it resolves w/out any issues: mbp:~ alexus$ ssh -v alexus OpenSSH_6.2p2, OSSLShim…
alexus
  • 13,112
  • 32
  • 117
  • 174
4
votes
3 answers

Username based SSH proxy

I'm trying to mux between two ssh servers based on incoming username i.e. ssh user1@testserver will go to one sshd instance and user2@testserver goes to another. Can this be done?
Amaterasu
  • 43
  • 1
  • 3
4
votes
2 answers

How to view and kill PHP processes?

I'm very new to using SSH and am having trouble finding a way to view and kill PHP processes that are running. When I say "PHP processes," I mean PHP files that were started through the browser, but that have continued to run when they were supposed…
Nate
  • 449
  • 6
  • 11
  • 24
4
votes
1 answer

How (not) to setup lightweight WM for occasional server management?

I'm working with our admin team to firm up all the requirements of the dev team before creating some system images. One of the things we ended up needing is a lightweight GUI setup. Knowing that the overhead should not really exist on servers, we'd…
4
votes
1 answer

What is the `sshd_config` parameter to set the time between password prompts?

If I attempt a logon with bad credentials to an sshd server, I am greeted with Access denied after about a 2 second pause. Is there a way to increase the time it takes to return the password entry prompt? Note that I already have LoginGraceTime set…
brandeded
  • 1,845
  • 8
  • 32
  • 50
4
votes
1 answer

Terminal output not updating display until enter key pressed

I am sshing to an Amazon instance and what I found out the display update is sloppy, sometimes the display refresh instantly but sometimes screen only updates half, eg, doing a ls command will only list half of the content and hangs until enter key…
James Lin
  • 161
  • 3
  • 9
4
votes
2 answers

ssh tunnel setup via a gateway, possible?

local -> gateway ( only ssh port enabled ) -> remote I can ssh to gateway then to remote, no problem. Can I establish a ssh tunnel between local and remote via gataway? I 'd like to access local:9980, which will forward to remote:9980 via…
valpa
  • 319
  • 9
  • 15
4
votes
1 answer

Change ssh ControlPath with host-specific declaration

I have a situation where I need to access the same SSH host (GitHub) with two different SSH keys. This is no problem and I can set it up easily by aliasing the hostname. The problem comes when this configuration is combined with my SSH…
petrsnd
  • 168
  • 1
  • 7
4
votes
2 answers

Persistent reverse SSH tunnels

We have a number of servers (currently in the 10s, soon the low 100s) deployed to varying institutions with varying network layouts. To make sure that we can access the servers at will we have them setting up reverse SSH tunnels back to a server we…
Jeremy Logan
  • 255
  • 3
  • 12
4
votes
1 answer

rsync connection closing right around an hour

I am running some command in cron that does an rsync over two data centers. The connection rate between the data centers is around 1Mbps. I noticed that rsync keeps failing around 2.7GB to 2.9GB of transferred data, which could equal around an…
Bradford
  • 295
  • 3
  • 7