Questions tagged [openssh]

OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a computer network using the SSH protocol.

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.

557 questions
306
votes
7 answers

ssh: automatically accept keys

I've written this small utility script: for h in $SERVER_LIST; do ssh $h "uptime"; done When a new server is added to $SERVER_LIST, the script is stopped with: The authenticity of host 'blah.blah.blah (10.10.10.10)' can't be established. RSA key…
Adam Matan
  • 12,919
169
votes
3 answers

Does ssh key need to be named id_rsa?

I have come across this problem a couple of times when creating build servers with keyed authentication. I was wondering if anyone else has experience this. I have a couple of keys for my current user that may connect to different machines. Let say…
myusuf3
  • 35,659
144
votes
14 answers

How to solve 'Connection refused' errors in SSH connection?

I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty. The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error like this: Network error: Connection…
frbry
  • 1,541
143
votes
4 answers

What does 'without password' mean in sshd_config file?

I just installed Ubuntu 14.04 on my server and I was setting up all my config files when I came across this in my sshd_config file: # Authentication: LoginGraceTime 120 PermitRootLogin without-password StrictModes yes This made me very worried. I…
John
  • 1,806
88
votes
4 answers

How to setup a restricted SFTP server on Ubuntu?

I would like to know how to set up root, sudo, sftp-only user accounts which won't be required public key authentication at log in. I would also like to know how to set up sftp-only users' home directories where they can't access upper level other…
64
votes
9 answers

How do I install an SSH private key generated by PuTTYgen?

I set up my Linux server to accept connections from my home PC by adding the public key generated by PuTTYgen to the authorized_keys file. Now I'm trying to connect to the same machine, but this time from another Ubuntu machine. I have to use the…
Assaf Lavie
  • 2,223
63
votes
3 answers

Host alias for ssh

There are a few SSH destinations I will frequently be connecting to and I'm wondering if rather than remember the IP address I can create a host alias for them. I'd like to be able to use... ssh -p xx user@domain.ssh I've tried establishing this…
Ben
  • 1,056
61
votes
7 answers

How to set up remote desktop sharing through SSH?

Is there a way to view (and control) a remote desktop through SSH? I will not have physical access to the remote host machine.
gerky
  • 741
48
votes
5 answers

How can I reconnect to a ssh session after a broken pipe?

So I was running apt-get upgrade on a server when the router decided it had been too long since it last made me angry: It dropped all connections. Moral of the story is to use screen a lot when you're on a bum router. Anyway, I logged back in and…
user6658
39
votes
8 answers

SSH Connection Error: No route to host

There are three machines in this scenario: Desktop A : user@1.23.x.x Laptop A : user@1.23.y.y Machine B : user@192.168.z.z All the machines have Ubuntu 11.04 (Desktop A is a 64bit one) and have both openssh-server and openssh-client. Now when I…
39
votes
17 answers

SSH error: Permission denied, please try again

I have an Ubuntu server setup using amazon ec2 instance. I need to connect my desktop (which is also a ubuntu machine) to the ubuntu server using SSH. I have installed open-ssh in ubuntu server. I need all systems of my network to connect the ubuntu…
38
votes
5 answers

passwordless ssh not working

I've tried to setup a password-less ssh b/w A to B and B to A as well. Generated the public and private key using ssh-keygen -trsa on both the machines. Used the ssh-copy-id utility to copy the public-keys from A to B as well as B to A. The…
Cuurious
  • 393
36
votes
2 answers

SSH Server cannot be found - Even though installed

I have a machine running Ubuntu 18.04 LTS where I cannot seem to get SSH Server working. I installed SSHServer using: sudo apt install openssh-server but I am getting the following when I try to start and / or check the status: sudo systemctl start…
Alan
  • 999
34
votes
2 answers

Connecting to Ubuntu server via SSH externally

I have recently installed Ubuntu Server 12.04 (Precise Pangolin) and intend to use it primarily as a file server. I am completely new to Linux, so this is a pretty big learning curve. Yesterday I was able to configure PuTTY on my Windows 7 machine…
Aesir
  • 865
  • 2
  • 8
  • 10
33
votes
4 answers

Start SSH automatically on boot

Completely brand new to linux and Ubnuntu. Setting up a machine to do deep learning/neural networks. So far it is going well. Got everything installed and running. I want to be able to ssh from my Mac laptop to use the system. I installed openssh…
Rothrock
  • 465
1
2 3
37 38