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

How do I use my .pem file from Amazon EC2 with mosh?

To login with ssh I do this: ssh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com I tried all this with mosh: mosh --ssh='ssh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com' mosh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com But I get the error: /usr/bin/mosh: could not get…
hermancain
  • 251
  • 1
  • 7
4
votes
3 answers

Copy ssh key or create a new one

I have a desktop and laptop that I use for development. I generated an ssh key on the primary machine (desktop) to my vps which uses a passphrase. In terms of best practices or security concerns, is it better to generate a new ssh key on my laptop…
darkpool
  • 169
  • 1
  • 1
  • 6
4
votes
1 answer

SSH Remote forward with ssh config file not Listening to all Addresses (Listening to local host only)

I'm trying to setup a Remote Forward from my AMAZON instance to my local machine (dev) My problem is that when I connect to amazon server and when I run the netstat -antp command it shows me that I have a socket listening on the 127.0.0.1:8080 only…
M. Gara
  • 163
  • 1
  • 2
  • 10
4
votes
0 answers

Delegate SSH USERAUTH traffic based on user name

I want to do delegate pubkey-based authentication for a given user to a different SSH server, without modifying client configuration but allowing modifications to server software. There are several similar questions already. This and this ask for…
MvG
  • 1,813
  • 15
  • 18
4
votes
1 answer

What is the maximum number of private keys you can use via SSH Agent (Pageant)

While answering Re-using SSH keys I had a question of my own, is there a limit to the number of ssh keys you can hold in ssh agents? (and/or putty pageant). (as a test, I loaded 10 keys into my pageant and didn't seem to have an issue)
Jacob Evans
  • 7,886
  • 3
  • 29
  • 57
4
votes
1 answer

Linux server kiosk

I want to build a dedicated machine I can use for testing candidates in our company. The machine should run Linux with SSH server listening for connections. I would like to send each candidate a user and password(the same one). Upon connection, he…
stdcall
  • 187
  • 1
  • 8
4
votes
2 answers

Allow both domain users *and* local users to Centos 7 server

I need to allow domain users (userid and password) access to a Centos 7 server, as well as local users (SSH key/passwordless). I have configured sshd_config with both AllowUsers and AllowGroups and assumed that if I added the local user to those it…
machinist
  • 71
  • 1
  • 1
  • 6
4
votes
1 answer

Possible to ssh into a server without using -i flag for key?

I have 3 EC2 instances and they all use the same private key. I'm setting up a hadoop cluster between these nodes and they require passwordless entry for this to work. How can I use this private key to easily ssh into the servers with keyless entry?…
coderkid
  • 193
  • 1
  • 5
4
votes
1 answer

Use of alias in /etc/hosts or ssh_config

I'm have configured a bastion or (jump) box to access a virtual private network. #ssh_config Host bastion HostName 14.90.140.120 User me IdentityFile ~/.ssh/me ForwardAgent yes Host 10.1.* User me IdentityFile ~/.ssh/me ProxyCommand ssh bastion -W…
bearrito
  • 380
  • 3
  • 16
4
votes
0 answers

Failed to start OpenBSD Secure Shell server

I have Debian Testing on my server. When do upgrade, it wants to upgrade openssh-server and fails... openssh-server (1:7.3p1-1) wird eingerichtet ... Job for ssh.service failed because the control process exited with error code. See "systemctl…
Paflow
  • 173
  • 1
  • 1
  • 7
4
votes
3 answers

Restrict access to KVM virtual machines to specific users

On my server I have a KVM virtual machine called "cards2". It was created by executing (as root): # virt-install --connect qemu:///system --virt-type kvm --name cards2 --ram 2048 --disk /var/kvm/cards2.qcow,size=3 --vcpus=8 --cdrom…
Mike
  • 689
  • 3
  • 9
  • 27
4
votes
5 answers

SSH issue - Disconnecting: Received data for nonexistent channel 0

The log below is from SSHD server when SSH client is trying to connect. I'm sure that I have correct ssh key. I just compared two RHEL5 servers. As I red, this means that server closed the connection for some reason. But any suggestions how to try…
laimison
  • 579
  • 2
  • 9
  • 17
4
votes
1 answer

rsync: no matching host key type found. Their offer: ssh-dss

I get this error when using rsync: $ rsync -av server:file . Unable to negotiate with 10.1.1.50 port 22: no matching host key type found. Their offer: ssh-dss rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] rsync error:…
igo
  • 393
  • 4
  • 9
4
votes
1 answer

Cannot SSH After Adding Another User to Group of SSH Target User

I'm trying to make a web interface for a game server. I have a user/group "gameserver" that has game files and configurations (not a sudoer). And a user/group "www-data" that you all know is for web application. Now I've unfortunately seen posts of…
0x00FE
  • 61
  • 1
  • 4
4
votes
1 answer

"wget --mirror" Alternative

I'm looking for an alternative to using this, it doesn't have to use FTP, but it should provide the same functionality as the "--mirror" option of wget where it only downloads new and changed files. wget --mirror --preserve-permissions…
joebert
  • 195
  • 7