Skip to main content

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
87 votes
4 answers
467k 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 ...
Yuya Kobayashi's user avatar
25 votes
2 answers
70k 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 ...
Tejas Virpariya's user avatar
140 votes
4 answers
347k 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-...
John's user avatar
  • 1,776
16 votes
6 answers
39k 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/...
user195123's user avatar
143 votes
14 answers
1.3m 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 ...
frbry's user avatar
  • 1,531
61 votes
3 answers
56k 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 ...
Ben's user avatar
  • 1,036
37 votes
17 answers
513k 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 ...
Senthil Kumaran's user avatar
20 votes
2 answers
27k 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 ~/....
Sushant Kumar's user avatar
13 votes
2 answers
101k 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 ...
Ci3's user avatar
  • 232
4 votes
1 answer
27k views

How to access home ssh server from outside via the Internet?

I am running ubuntu server 20.04 and out of the blue I am getting operation timeout. I was wondering how can I troubleshoot the issue. I am using ufw and the connection port is open. so when I use ...
RC-'s user avatar
  • 155
46 votes
4 answers
89k 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 ...
user avatar
34 votes
2 answers
185k 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 ...
Aesir's user avatar
  • 855
19 votes
2 answers
39k 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 ...
Richard Stokes's user avatar
13 votes
3 answers
18k 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 ...
Jerkofalltrades's user avatar
7 votes
2 answers
19k 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 ...
user260119's user avatar
4 votes
1 answer
6k views

VNC vino over SSH tunnel ONLY

I've been searching for hours now, can't figure this one out. I am trying to make the following happen: Client: remmina + ssh tunnel Server: Lubuntu + openssh server (public key authentication) + ...
GogromaT's user avatar
  • 143
63 votes
9 answers
274k 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 ...
Assaf Lavie's user avatar
  • 2,183
61 votes
7 answers
382k 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.
gerky's user avatar
  • 741
32 votes
4 answers
181k 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 ...
Rothrock's user avatar
  • 455
28 votes
3 answers
99k 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. ...
Emil Sommer's user avatar
14 votes
7 answers
76k 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" [email protected] ssh: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libcrypto.so.1.0.0: no version ...
Mona Jalal's user avatar
  • 4,605
8 votes
3 answers
36k 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: ...
DeLiK's user avatar
  • 352
3 votes
2 answers
3k views

How do I install FreeNX server so that it works correctly?

I've tried every single possible way of installing the server now, I've read every how to available and I still can't get it to work. Please let me know in which step I do wrong. I'm using ubuntu 10....
Niklas's user avatar
  • 1,143
3 votes
1 answer
5k views

How to test plymouth via virtual machine?

I am trying to edit my splash screen but its really annoying to restart the computer everytime just to find out it doesn't even work. i read on an article that I can do a virtual machine via ssh but I ...
Vitaly's user avatar
  • 871
3 votes
1 answer
4k views

How to convert Filezilla PPK to openssh sftp compatible key

I'd like to use the command line sftp client and sshfs and have been given a filezilla ppk file. How do I extract the keys into a format that works with sftp, openssh? I tried just copying the ...
hookenz's user avatar
  • 2,599
2 votes
1 answer
34k views

error while loading shared libraries: libssl.so.1.1 (and libcrypto.so.1.1)

As you can see I'm missing libcrypto and libssl files. I locked out myself from my server after running apt-update and apt-upgrade, I'm running this from web console, because ssh nor any other program ...
user3108268's user avatar
2 votes
1 answer
665 views

Is it possible to use DD to obtain splited images from a hard-drive?

My piano teacher asked me to record one of his recitals with his iPod (3-4 generation, not so sure) and I did it. While trying to edit it, he accidentaly deleted it, I'm trying to recover. After some ...
Red Banana's user avatar
302 votes
7 answers
445k 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....
Adam Matan's user avatar
  • 12.6k
165 votes
3 answers
250k 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 ...
myusuf3's user avatar
  • 34.5k
38 votes
5 answers
191k 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 ...
Cuurious's user avatar
  • 393
21 votes
5 answers
166k 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 ...
Danial Behzadi's user avatar
18 votes
4 answers
49k 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 ...
Tom Brossman's user avatar
  • 13.1k
15 votes
4 answers
21k 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.
Fango's user avatar
  • 491
12 votes
1 answer
45k views

Enabling and disabling sshd at boot via systemd

I have openssh-server installed but I'd like to sometimes leave the sshd service off by default at boot, and only start it from the terminal as needed. Based on the the advice of many other questions,...
BeeOnRope's user avatar
  • 656
12 votes
1 answer
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 ...
rbruceporter's user avatar
11 votes
2 answers
40k 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 ...
rdoubleui's user avatar
  • 213
11 votes
5 answers
82k 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 ...
Naten Baptista's user avatar
10 votes
1 answer
37k 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. ...
scottsmail's user avatar
10 votes
6 answers
34k 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 ...
Frielspak's user avatar
  • 101
10 votes
5 answers
72k 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 "...
Finger78's user avatar
  • 109
10 votes
2 answers
29k 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 ...
thallium85's user avatar
9 votes
0 answers
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: ...
user332602's user avatar
7 votes
1 answer
6k 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 ...
Dusty Boshoff's user avatar
6 votes
4 answers
18k views

How do I build openssh from source?

I try to install OpenSSH ./configure checking for openssl/opensslv.h... no configure: error: *** OpenSSL headers missing any idea?
Miki's user avatar
  • 261
6 votes
3 answers
18k views

SSH public key added but still prompt for password

I've encountered an error when trying to setup so I can connect to my HTPC with my laptop, I've followed this guide from ubuntu help This is my ~/.ssh/ permissions on my remote host -rw------- 1 ...
MikeyR's user avatar
  • 75
6 votes
3 answers
27k views

RSA keys not authenticating

Just trying to get a basic setup of openSSH going on an Ubuntu box to work remotely. Main issue: RSA keys fail auth. ssh DOES work using the password for auth, but I would much rather limit it to only ...
Troy Liebel's user avatar
6 votes
1 answer
7k views

UFW OpenSSH application port change?

When using UFW I see there are "applications" like OpenSSH or Apache, to name a couple. If I were to change my SSH default port to something other than the 22, would the OpenSSH application rule map ...
Eddiefiggie's user avatar
5 votes
2 answers
2k views

Everytime i am trying to connect to my box using SSH, its failing not connecting

From any other PC doing SSH to my Ubuntu 11.10,is failing. My network setup: Telenet ISP (Belgium) > Fiber cable < > RJ45 cable straight > to Ubuntu PC Even the SSH is running: Other PC: ...
4 votes
3 answers
4k views

Can't SSH into Ubuntu Touch device

From my computer: cameron@cameron-ubuntu:~$ ssh [email protected] Permission denied (publickey). So it seems that openssh on the phone doesn't have password authentication enabled. But it seems ...
Cameron Lee's user avatar
4 votes
1 answer
47k views

Why do I get "connection refused" errors connecting to a server via SSH?

I've installed Ubuntu 12.04.1 LTS on it with the LAMP stack. I can ping it but when I try to connect to it the server can't be found. When I try to connect with WinSCP I get the error Network error: ...
HPSdataman's user avatar