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.

9100 questions
4
votes
2 answers

Replace scp with sftp

We have a few synchronization scripts for a client sending files, using scp, to a remote server administered by one of their providers. Recently they closed it, and the new one they provided doesn't permit scp, only sftp (there is no way to get a…
Ulrar
  • 417
4
votes
1 answer

Directadmin: Existing user with enabled SSH access can't login

I've been using directadmin for a while now. But I can't figure this one out. Today a customer wanted to have SSH access so I enabled SSH access on the user he uses to login to his FTP. I tried logging into the user with SSH and it did not work.…
Efekan
  • 171
4
votes
1 answer

Provide sudo password over ssh while using Bash process substitution?

My question can be seen as an extension of How do diff over ssh? with a little twist. Environment macOS Sierra (10.12.3) OpenSSH 7.3 Example situation I am trying to print a diff between two files, one of them is located on a remote host and…
4
votes
1 answer

SSH fails after Port change on CentOS 7

After changing the port. And restarting the SSH service, it failed on me. I got the following info when I ran systemctl status sshd.service : sshd.service: main process exited, code=exited, status=255/n/a Unit sshd.service entered failed state.…
Nkk
  • 239
4
votes
2 answers

Remote SSH command hangs, but only when executed through Jenkins

Disclaimer: I'm a bit new to the community, please be gentle :) I'm having an SSH issue that I just can't seem to explain. As a bit of background, here's the problem that I'm solving: There are several disparate Java services that existing within…
cerberus
  • 322
4
votes
7 answers

How to exit a SSH connection in a bash script

I've read several posts on here about this topic but every solution I find seems to be a one liner where you run one command. I'm creating a script where I ssh to several different hosts one after a time. The goal is to ssh to a machine, do some…
Joshua
  • 179
4
votes
2 answers

SSH Jump Host WITHOUT Agent Forwarding

Although a simple question, I have searched for days without success. M = My machine J = Jump Host S = Server Jump Host has my public key on authorized_keys. Server has J's public key on authorized_keys. Allowed connections (due to key…
user286219
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…
4
votes
2 answers

Measure RTT for SSH

I'm trying to figure out a way to measure RTT for SSH connection, but my google-fu is too weak (perhaps I'm asking wrong questions?). Something akin to ping , for cases where SSH works, but ICMP does not.
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
  • 179
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
  • 165
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,823
4
votes
1 answer

Changing comment in Putty .ppk file stop it accepting password

I wanted my putty key to have a more descriptive comment rather than just the date so I opened it up in text editor and changed it. After I did pageant wouldn't accept the password anymore. Luckily I had it backed up. How do I change the comment…
Guerrilla
  • 293
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
  • 8,481
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 2 3
…
99
100