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
3 votes
2 answers
13k views

Disable automatic starting of sshd? [duplicate]

Possible Duplicate: How do I disable SSH from starting automatically? Simple question here; what's the correct way to stop the sshd service from starting when the OS boots ? I'm not sure if this ...
blong's user avatar
  • 204
3 votes
2 answers
2k views

messed up sshd_config, so removed openssh-server, installed openssh-server, Not replacing deleted config file /etc/ssh/sshd_config

I messed up sshd_config and did not make a copy. So I removed openssh-server, then installed openssh-server. The installation complained with message. Not replacing deleted config file /etc/ssh/...
grabbag's user avatar
  • 109
3 votes
1 answer
3k views

Messed up with my ssh_config file. How can I recover the original file?

I was setting up ssh on Ubuntu. I accidentally copied the contents of sshd_config in ssh_config file! Is there a place where I can find the original one? Fortunately I didn't touch the ssh_config. I ...
ZelelB's user avatar
  • 205
3 votes
4 answers
23k views

Update OpenSSH Server in 12.04?

I'm having hard time updating openssh-server in ubuntu 12.04, I stupidly downloaded .deb file for 14.04 and of course it didn't work :/ I've tried sudo apt-get -f install, it just removed my openssh ...
Potato Science's user avatar
3 votes
1 answer
8k views

Restore SSH Key from txt

I had saved my private and public SSH key contents to a text file, and I recently had to reinstall Ubuntu meaning I lost most of the stuff that was in my home folder. Now, I would like to restore my ...
Brandon Bertelsen's user avatar
3 votes
1 answer
21k views

SFTP connection successful, but can't upload files

I followed this guide. I am using Ubuntu Server and Filezilla, and I can succesfully connect. However, I can only read and download files, not upload or edit them. If I change the file permissions to ...
Bas's user avatar
  • 33
3 votes
3 answers
12k views

SSH from external network refused

I've installed open-ssh-server on my home computer(running Lubuntu 12.04.1) in order to connect to it from school. This is how I've set up the sshd_config file: # Package generated configuration file ...
Hildigerr's user avatar
3 votes
1 answer
781 views

How to give restricted access to user

I have a home PC and I created a reverse port forwarding to a server. Now I would like to go access to some people to the Home PC through this server. I would like to control the access of the user on ...
Mokus's user avatar
  • 4,502
3 votes
1 answer
235 views

How to delete users who are logged in

We tried to remove them by killing the processes but they are still there. This is how users appear can't access root pts/18 tmux(1804832).%13 can't access root pts/19 tmux(1804832).%...
abdoul rachid's user avatar
3 votes
2 answers
932 views

Filtering content of command with grep

I am trying to filter out a the output of ssh-keyscan. The goal of this is to filter the output so I can use it in my python code to identify hosts connected to my VPN. Normally I would use grep to ...
Tim R's user avatar
  • 228
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,579
3 votes
1 answer
3k views

Different version between OpenSSH and OpenSSL in Ubuntu Server

In an Ubuntu Server I have installed from source the last version of Openssl and OpenSSH. If I check the version installed of Openssl I see the correct version but, if I check the version of OpenSSH I ...
Echelon's user avatar
  • 31
3 votes
2 answers
2k views

How To Login to VPS Using SSH/RSA Keys

I followed the instructions here and created a set of ssh keys (rsa) whilst logged into a vps as root. Encryption level 4096 as suggested... The keys were already on the host so no need to transfer......
Hawk007's user avatar
  • 159
3 votes
1 answer
988 views

How to disable Automatic Login for ssh key?

I had ticked the 'Automatically Unlock this key' option when I was entering the password to unlock my ssh key, so now I'll be logged in automatically, although I did not mean to. How can I revert this?...
Gajraj Singh Chouhan's user avatar
3 votes
1 answer
12k views

installing openssh-server without an internet connection

Currently we have been given an old server with the OS ubuntu. To work at it without always physically being there I wanted to access it with the software putty, but I haven't installed "openssh-...
origins523's user avatar
3 votes
2 answers
20k views

sshd daemon not running ubuntu 12.04

The sshd daemon is not running on my machine (Ubuntu 12.04). I have repeatedly re-installed the openssh server and rebooted. I get no output to this command: ps -A | grep sshd Any help would be ...
Cole Freniere's user avatar
3 votes
1 answer
418 views

Losing SSH connection when exiting from the main console login

I have installed openssh-server from Synaptics, as usual, on a brand new Ubuntu Desktop computer, 10.10, with all updates and patches implemented. If I have the local console logged in, I can SSH to ...
jfmessier's user avatar
  • 6,096
3 votes
1 answer
276 views

Unable to ssh over WAN

System: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal Openssh version: $ ssh -V OpenSSH_8.2p1 Ubuntu-...
latentcode's user avatar
3 votes
2 answers
3k views

How to monitor website stats from the terminal?

is there any way to monitoring the stats from my own website .. like example.com .. just via our terminal without installing plugins .. so we can see real time visitor and bots came and go at website ....
santosamaru's user avatar
3 votes
0 answers
3k views

Cannot SSH locally from Mac to Ubuntu 16.04 Server (running as Hyper-v guest on Server 2012R2)

I've looked just about everywhere for a solution but I have yet to find one. Here's my problem: I try and connect to my Ubuntu Server via SSH from my Macbook Pro within my LAN with: ssh nextcloud@192....
snowboardit's user avatar
3 votes
0 answers
10k views

Can not clone a git repository over ssh (Bad configuration option) [closed]

After upgrading to Ubuntu 16.10, I can not clone my repositories, which are served in Gitlab, over ssh. If I use git clone [email protected]:user_name/repo_name.git command, I get this: ~/.ssh/config: ...
numand's user avatar
  • 1,696
3 votes
0 answers
3k views

SSH Connection to Ubuntu Server fails with Connection closed <ip> [preauth]

Newly installed Ubuntu Server 16.04, have done the update and upgrades. Running sudo service ssh status says it is up and running. I marked OpenSSH-server during the installation. But I cannot ...
swe_mattias's user avatar
3 votes
1 answer
3k views

ssh connections to Ubuntu are intermittent

I'm trying to use ssh to connect from a Mac to Ubuntu 12.04. I get "Connection reset by peer." Try again and I get "port 22: Connection refused." Keep trying and I get password prompt. Enter password ...
Kenneth Garges's user avatar
3 votes
0 answers
10k views

Can't change ssh port (Trusty 14.04)

I've been trying to change my ssh port without success and none of the suggestions I've found did the trick for me. I'm on Trusty 14.04 at Rackspace (upgraded from Precise). This is the sequence of ...
Marc's user avatar
  • 131
3 votes
1 answer
15k views

Why ID card reader is not working in Ubuntu 12.04, 12.10? Using Omnikey3121

I have this Omnikey 3121 which is an USB ID card reader. Connected to my Ubuntu. When i try to read Belgiun ID Card or any other card it does not work always missing to provide results. How can i make ...
user avatar
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
2 votes
2 answers
22k views

OpenSSH intermittent error ( ssh_exchange_identification: Connection closed by remote host ) on a public IP

I faced a very strange issue on one of my public SSH server. It was failing intermittently with the error below: ssh_exchange_identification: Connection closed by remote host We all know that it'...
vivekyad4v's user avatar
2 votes
2 answers
2k views

SSH Key problem

I want to setup my home server to use ssh keys but when I follow the tutorial on https://help.ubuntu.com/10.04/serverguide/C/openssh-server.html for setting up ssh keys I get this: Bad port 'umask ...
user avatar
2 votes
2 answers
2k views

Can't connect to desktop via ssh

Trying to setup a remote ssh file server (sftp) I've done it before but for some reason with ubuntu 10.10 I cannot connect to the assigned ssh port. I setup the sshd_config file to listen on a ...
Jerkofalltrades's user avatar
2 votes
3 answers
11k views

ssh working so slow

Whenever I start my local ssh login I have to wait for seconds to write a complete command. Even "ls" is taking so much time. I am using it wireless with two of my linux laptops and connecting to my ...
kashminder's user avatar
  • 1,370
2 votes
2 answers
521 views

Can't I scroll in the terminal up? Terminal shows only 24 rows? The scrollbar on the right fills the entire vertical height of the window?

Based on: Terminal output scrolling is gone (Headless 11.10 Server, Upgraded from 10.10) and https://superuser.com/questions/1331658/why-cant-i-scroll-in-the-terminal and my own dire situation right ...
michal roesler's user avatar
2 votes
2 answers
9k views

Alternative for Xshell.

Do anyone knows an alternative for xshell? I have checked and the alternatives mentioned are putty, openssh etc. But I require it mainly for port forwarding and for that xshell works perfectly. Is ...
Sourav Mishra's user avatar
2 votes
1 answer
5k views

can't log in with my password during ssh connection

my /etc/ssh/ssh_config is as follows # This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can ...
Yousef Saber's user avatar
2 votes
3 answers
12k views

Setup sftp user account and restric read/write access to one folder

I would like to create sftp user account on Ubuntu server which has read/write access only to one specific folder. I would like this user to have rights to transfer files up and from my server via ...
Primoz Rome's user avatar
2 votes
2 answers
2k views

Custom port for SSH client in $HOME/.ssh/config doesn't work

I'm using a config file for my OpenSSH client instead of defining options in command line whenever needed, sample from my config file: $ cat ~/.ssh/config ---- TOP PARTS REDACTED HERE ---- Host ...
user avatar
2 votes
2 answers
2k views

OpenSSH on Ubuntu 16.04 shows ECDSA keys in an unusual format

I'm trying to SSH to my server, and the client is asking about the authenticity of the host. ECDSA key fingerprint is SHA256:bla bla bla With every version of OpenSSH I've used, ECDSA (or RSA) keys ...
Nateowami's user avatar
  • 1,515
2 votes
1 answer
6k views

SSH: Set timeout for broken pipe

ssh has the paramater -o ConnectTimeout=10 to set the timeout in seconds when establishing the connection, but once the connection has been established, the parameter has no more effect. When an ...
Rapti's user avatar
  • 153
2 votes
1 answer
8k views

Installing openssh-server on a virtual machine

I am unable to install openssh-server on an Ubuntu 13.10 virtual machine. Here is the command I used and it's output: sudo apt-get install openssh-server [sudo] password for mohamed: Reading package ...
Mohamed Ahmed's user avatar
2 votes
1 answer
17k views

How to use scp to transfer files between ubuntu and windows10?

I'm using the command scp -P${myport} ${username}@${ip} to tranfer the files, but I don't know how to write the filepath in windows. For example, if the filepath in windows isC:/Download, how to write ...
NiaBie's user avatar
  • 33
2 votes
3 answers
3k views

SSH issue on Ubuntu Mate / Raspberry PI

I keep have an issue with SSH I always have this message when trying to connect : Connection closed by 192.168.1.10 port 22 When I check the SSH status ssh.service - OpenBSD Secure Shell server ...
Kevin's user avatar
  • 165
2 votes
2 answers
2k views

SSH key-based auth asks for password on first login [duplicate]

I have a fresh Ubuntu 16.04.1 LTS system and have noticed that key-based SSH authentication asks for the account's password the first time I login to the machine and subsequent SSH attempts work ...
berto's user avatar
  • 401
2 votes
1 answer
3k views

Difference between OpenSSH server and Apache server?

Is there any difference between OpenSSH Server and Apache Server? Backstroy: I need a web-server with a database. While installing Ubuntu Server, I chose an option to install OpenSSH Server as well ...
Name's user avatar
  • 175
2 votes
2 answers
3k views

Ubuntu 16.04 ssh-add without ssh-agent?

I have configured ssh-agent on many older Ubuntu installations, but today, on my new Ubuntu 16.04 setup, I realized that ssh-add has been working, but I never configured my system to run ssh-agent! ...
Dave's user avatar
  • 3,647
2 votes
2 answers
11k views

SSH to local ip in external network

I know there is a lot of information about this subject but still I do not understand something. We have internal wiifi network that include 4 desktops, each one has internal local ip address. The ...
Holy Moses's user avatar
2 votes
1 answer
2k views

Force ssh user to different shell through config

Is it possible in the openssh-server config, to force a subset of users to use a different shell than the one defined for them in /etc/passwd? Say that i, for example, want to confine all users ...
Martin Nielsen's user avatar
2 votes
3 answers
10k views

Unable to connect via SSH: port 22 error

I have two machines connected via the Ethernet cable. One machine is running Mac OS X , the other Ubuntu (13.10). I am currently able to connect to the Mac via SSH. However when I try login in on the ...
kirikoumath's user avatar
2 votes
2 answers
7k views

Incoming ssh connections blocked

Hi some time back I asked this question and made a lot of changes to secure my system. Now I need to make a dummy account and give ssh access of this account to a friend. But I am unable to receive ...
Shagun Sodhani's user avatar
2 votes
2 answers
29k views

Ubuntu server: ssh is showing in process but does not work

This is all within a LAN. My server can be pinged. I can run php apps on my server from within the LAN. I have installed openssh-server. I tried the command: ps aux and it shows the: process ...
itsols's user avatar
  • 1,140
2 votes
1 answer
1k views

Can't connect SSH on static IP address

I have a default Ubuntu Server 22.04 installation (haven't done anything on it yet). SSH is working fine with default configuration on server's dynamic local IP. I then set up a new netplan ...
KarmaciouS's user avatar
2 votes
2 answers
4k views

Using a PuTTY private key from windows to linux

I've generated two keys on PuTTY: public and private. Using this software on windows I can connect to the server as usual. Then I tried to copy those files in my ubuntu machine (21.04), and logged in ...
Adonis Cedeño's user avatar

1 2
3
4 5
11