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.

Filter by
Sorted by
Tagged with
251
votes
5answers
342k views

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....
138
votes
3answers
183k views

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 ...
128
votes
4answers
304k views

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-...
113
votes
14answers
1.1m views

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 ...
84
votes
4answers
445k views

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 ...
55
votes
9answers
228k views

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 ...
51
votes
7answers
304k views

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.
48
votes
2answers
45k views

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 ...
35
votes
5answers
184k views

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 ...
34
votes
7answers
335k views

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 ...
33
votes
4answers
45k views

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 connection. Moral of the story is to use screen a lot when you're ...
26
votes
2answers
155k views

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 ...
25
votes
13answers
313k views

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 ...
20
votes
2answers
16k views

What's the difference between ssh and openssh packages?

I am setting up a LAMP server and want to use SSH. I saw a command for sudo apt-get install ssh and wondered if it was the same thing as openssh? If I was to now do a apt-get install openssh would I ...
18
votes
3answers
50k views

Error `could not load host key` when trying to recreate SSH host keys

I am trying to recreate the ssh-server host keys. I have at least two ways to do this: With dpkg-reconfigure dpkg-reconfigure openssh-server This works fine, but I cannot give the key length then. ...
18
votes
1answer
57k views

key_load_public: invalid format with scp or git clone on Ubuntu 15.10

After a fresh install of Ubuntu 15.10, when using scp or git clone, I get the following warning (the command itself doesn't fail): key_load_public: invalid format How can I get rid of this warning? ...
18
votes
2answers
69k views

How to generate Openssl .pem file and where we have to place it

I want to generate a OpenSSL .pem file to allow the remote login via ssh using .pem file at the place of password. I am able to generate key as well as .crt and .pem file using the following sudo ...
17
votes
2answers
87k views

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 ...
17
votes
4answers
41k views

What causes SSH problems after rebooting a 14.04 server?

Why does rebooting a server running Ubuntu 14.04 give me 'Connection refused' errors? I see ssh: connect to host <IP-address-here> port 22: Connection refused but only for 14.04 and only after ...
16
votes
6answers
33k views

How can I access my Ubuntu phone over ssh?

Whenever I try to run apt-get install openssh-server I get the following errors: root@ubuntu-phablet:/home/hablet# apt-get install openssh-server W: Not using locking for read only lock file /var/lib/...
16
votes
2answers
31k views

Cannot ssh into Ubuntu Server by hostname

I just set up Ubuntu 12.04 Server on an old box laying around, connected to my router via ethernet. I set up openssh-server as instructed for remote access, but I cannot ssh into it from my laptop ...
16
votes
2answers
17k views

openssh server: rejected send message

When I tried to restart the ssh server on my ubuntu box, I got me@me-one:~$ service ssh restart restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.63" (uid=1000 pid=3354 ...
15
votes
2answers
5k views

How do I re-issue OpenSSL snakeoil cert?

In light of the recent heartbleed fiasco and whatnot I too have been scrambling to up security on some servers. My question is how do I reissue the Snakeoil cert that comes with Openssl? The cert ...
14
votes
2answers
88k views

Where is the .ssh directory?

I installed openssh, but I can't find the .ssh directory. Could anyone be able to tell me where could I find this directory? P.S. I installed Ubuntu 16.10 as a virtual machine.
13
votes
2answers
44k views

Can SSH with IP but not host name?

When I SSH directly to the server's IP address, it works. (ssh michael@10.1.10.129) For reference, here is the resulting prompt: michael@noranetserver:~$ However ssh-ing by name doesn't work like ...
12
votes
4answers
18k views

How to disable autostart of SSHD in Ubuntu 15.04

In older versions of Ubuntu I commented out the "start on ..." line in /etc/init/ssh.conf. This worked well, but not in Ubuntu 15.04.
12
votes
2answers
10k views

Difference between Software Selection Servers

I am installing Ubuntu Server, and I want to know what is the difference between these: [ ] OpenSSH server [ ] DNS server [ ] LAMP server [ ] Mail server [ ] PostgreSQL server [ ] Print server [ ] ...
12
votes
3answers
12k views

How to enter the Default Keyring password via the command line?

Is there a way to enter the default keyring password using the command line? For instance: You have a remote setup of Ubuntu 10.10 thats set to auto login. You don't want to remove the keyring ...
12
votes
1answer
18k views

I am getting a Putty attempted incorrect protocol errors when I SSH into my server from Windows

I have had Putty connecting via SSH to my Ubuntu 12.10 server for several months. Yesterday I began to get the following error every time I connect: PuTTY X11 proxy: wrong authentication protocol ...
11
votes
7answers
55k views

libcrypto.so.1.0.0: no version information available (required by ssh)

I get the following error: jalal@klein:~$ ssh -i "hyunwoo_key.pem" ubuntu@ec2-52-23-201-2.compute-1.amazonaws.com ssh: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libcrypto.so.1.0.0: no version ...
11
votes
2answers
69k views

Connection timeout for ssh server

I'm trying to setup openssh-server, but I'm having some issues connecting. I changed the port to something non-standard (57757) and then set my router to forward to that port. On my LAN, I'm able to ...
10
votes
6answers
30k views

SSH problem after update

Setting up openssh-server (1:5.3p1-3ubuntu7) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... start: Job failed to start Can't initialize ...
10
votes
2answers
23k views

apt-get dependency issue Open-SSH Client

This is on an Ubuntu 12.04 Server. I'm getting this error when trying to run any apt-get install (trying to install unrelated, arbitrary packages): dpkg: dependency problems prevent configuration of ...
10
votes
2answers
24k views

Bizarre SSH Problem - It won't even start

I recently got Ubuntu 12.04 Precise, got it up and running with some MediaWiki software, static IP on the box and router and was able to access the main page even from a cell phone. Everything seemed ...
10
votes
1answer
34k views

Limit SFTP user access to specified directory

I have a Ubuntu 14.04 server installed with open ssh. I'd like to configure sftp for customers to be able to download files only. In other words, I put files in a directory that they are jailed to. ...
10
votes
5answers
73k views

openssh-server package not available on 12.04.2

I have just done a fresh install of 12.04.2 and found out that i could not ssh to this PC. I tried to install openssh-server but it said that "Package openssh-server is not available..." What is ...
10
votes
2answers
63k views

ssh refusing connection with message “no hostkey alg”

My SSH connections worked well, but from last week SSH from my laptop to my board refusing connection. I can make a SSH connection from the board to laptop, but not vice-versa. I tried that with my ...
10
votes
1answer
16k views

NX/SSH remote access with Remmina

After many days and a lot of frustration, I managed to get freenx to work on my home server. I can connect to it with nomachine's linux client, but I want to use Remmina for this purpose. The problem ...
9
votes
1answer
12k views

Difference between pgp protocol and rsa protocol [closed]

These are the two widely used protocols in a number servers and email applications for security with public private key pair. What is the difference between them? What are the other popular protocols ...
9
votes
2answers
5k views

Why do I've two entries per server in known_hosts file?

On my mac I've 1 entry per server in the ~/.ssh/known_hosts file, in Ubuntu I noticed there are two created per server. Why is that? Format is: |1|wwwwwwwwwwwwwww=|wwwwwwwwww= ecdsa-sha2-nistp256 ...
9
votes
0answers
21k views

Installed 15.04, cannot restart ssh daemon [duplicate]

As the title says, I installed 15.04. One of the first things I did was sudo apt-get install openssh-server. The next command was sudo restart ssh, which is greeted with an output of: restart: ...
8
votes
4answers
56k views

How to enable SSH on boot in Ubuntu MATE

I have installed Ubuntu Mate 16.04.2 LTS on my Pi2 and installed OpenSSH but when the Pi starts/restarts SSH does not automatically turn on. I've tried sudo systemct1 enable ssh but all I get is "...
8
votes
2answers
16k views

Key based SSH login that requires both key AND password

My problem is : I developed successfully RSA Key based ssh login on board from system. When a client logs in for the first time, ask about private key and passphrase also which works fine. In second ...
7
votes
2answers
8k views

How do I setup SSH key based authentication for GitHub by using ~/.ssh/config file?

I am trying to set up my SSH keys for GitHub and created a new SSH key for the same. I have managed to setup the SSH key but I wish to retain these settings and save them in the configuration file ~/....
7
votes
2answers
17k views

X11 forwarding in SSH

How to run X11 GUI applications from a remote server using SSH? For example: my first desktop 192.168.1.1 my second desktop IP 192.168.1.12 I 'm sshing from my first desktop to the second and i ...
7
votes
2answers
26k views

How could I shutdown a remote host, in my network thru ssh, with a local host?

The question is simple. What would be the script I would have to use to shut down a computer in my network thru ssh. Normaly i would go to command line and: ssh desktop delik@desktop's password: ...
7
votes
2answers
2k views

Server is dropping SSH connections, then not allowing me to log back on

I have an ESX box which I have loaded with two Ubuntu Server machines. During setup, I chose no additional packages to install as I just wanted a lightweight machine for testing. The first thing I ...
6
votes
1answer
29k views

ssh: connect to host 10.0.2.15 port 22: Connection refused

I have been trying the following command on the virtual machine in Ubuntu: ssh root@10.0.2.15 But I keep in getting this response : ssh: connect to host 10.0.2.15 port 22: Connection refused I ...
6
votes
3answers
5k views

Enable FIPS 140-2 in ubuntu

I have Ubuntu 12.04.5 LTS server. Mainly I am running an SFTP server (OpenSSH_5.9), Vsftpd server (vsFTPd 2.3.5) and an IBM Message queue. My client want this server to be FIPS 140-2 certified, about ...
6
votes
1answer
3k views

Execute prelogin scripts for SSH

I would like to know how I can execute a local server script, for instance send a mail using mailx, when a ssh session is opened, pre-login stage. When a ssh connection comes into the server, I ...

1
2 3 4 5
9