Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

SSH freezing moments after successfully connecting, then Broken Pipe

Sorry to ask about a topic that's been done to death, but I haven't found what I need yet. I've set up a lambda machine with an SSH server. I can connect to it from my laptop with ssh -l <username&...
Pavel Komarov's user avatar
0 votes
0 answers
2k views

Session closed for user root

I'm trying to use an old pc as server (ubuntu desktop LTS 22.04.02) and to connect from my new personal computer (ubuntu desktop LTS 22.04.02). The command ssh -Y me@the other ip address worked once ...
SO_32's user avatar
  • 187
0 votes
1 answer
241 views

how to properly mask ssh server background service

I want to mask ssh so the ssh server is disabled till I need it myself. but still want to have ssh client capabilities. I use openssh and the service is ssh.service and its alias sshd.service I use ...
Usermaxn's user avatar
  • 217
0 votes
0 answers
131 views

ssh tunnel general process on a phone -used as vpn -user limitation failed

I'm using a couple of vm's as an ssh tunnel-vpn for both android and iOS, using ssh clients on both OS's. so now i want to limit the number of sessions per each user in order for each user is limited ...
Sandman Shiri's user avatar
0 votes
0 answers
106 views

Why I am not able to connect Ubuntu server with SSH key?

I have Ubuntu server 22.4 and I it had SSH server installed. Time to time SSH connection was doping even while I was working. I update the SSH by using command sudo apt-get update ssh. After the ...
LoverBoy3694's user avatar
0 votes
1 answer
1k views

issue sshd_config / systemctl restart

one of my workstation (previously it was a 22.04.1 server edition but according to NUC compatibility list last BIOS and dbx EUFI Database uggrade force me to downgrade to workstation as Server edition ...
Fred L.'s user avatar
  • 19
0 votes
0 answers
5k views

Can’t change SSH port

I can’t change the port from 22 for openssh. I’m using /etc/ssh/sshd_config. The line hasn’t been commented out. I’ve restarted the service. But no matter what I do when I check with service ssh ...
Brandon OFTO's user avatar
0 votes
0 answers
128 views

SSH Connectivity Issue

Why does the ssh client stop connecting to servers either right after reboot or few minutes after reboot? The screenshot I found this in both ubuntu 20 as well as ubuntu 22. My server is working fine ...
saikat sadhukha's user avatar
0 votes
0 answers
1k views

"Wrong password" error on ssh server remotely

I am running an SSH server on my local machine and I am able to perfectly login and modify files if I use something like [email protected] and type my password. However, when I try to login from ...
Miguel Rodriguez's user avatar
1 vote
0 answers
173 views

After upgrade to Ubuntu 22.04, getting ssh Permission denied (publickey) error [duplicate]

Immediately following my upgrade to Ubuntu 22.04 from 21.10, I can no longer connect to Google Cloud Platform via ssh and am receiving the following error (e.g. after running git clone): [email protected]@...
Adam Smith's user avatar
0 votes
1 answer
2k views

CLI needs sudo to be able to SSH

I have a strange error. I just installed Ubuntu 22.04 and copied over my SSH keys from the old installation (Ubuntu 20.04). Now suddenly I need sudo to be able to SSH to any machine - as long as it's ...
Daniel Hansson's user avatar
1 vote
1 answer
4k views

How retrieve or recreate a delete file from the /etc/ssh directory

In the /etc/ssh directory exists the following content: moduli sshd_config ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key ssh_import_id ssh_config sshd_config....
Manuel Jordan's user avatar
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
0 votes
1 answer
509 views

Why am I able to SSH a remote machine even with the wrong keys?

Description: I have created a ssh connection between my Windows Pc and Raspberry Pi. To so I followed the following steps: Step 1: Somehow get the IP address of the Raspberry Pi. It should be ...
Federico Gentile's user avatar
1 vote
3 answers
7k views

ssh server service won't start on Ubuntu 18.04 after reboot

I've a VPS with Ubuntu 18.04Lts on Google Cloud. On every reboot, I've to start the ssh daemon service either by service ssh(d) start or systemctl start ssh(d) (both ssh and sshd work the similar way ...
Bathinda Helper's user avatar
1 vote
1 answer
24k views

SSH server listening on 0.0.0.0:22?

I have two machines in my home network and I want to connect them over SSH. The first machine has a local ip 192.168.1.23 and openssh remote client installed. The second has a local ip 192.168.1.169 ...
Themelis's user avatar
  • 159
1 vote
1 answer
1k views

Automate SSH client and server setup on every device

I don't think my needs are all that unique. I have a home network wired and wireless with multiple devices running Ubuntu 16.04.6 LTS. They will be upgraded to 20.04 soon though. My desire is to ...
WinEunuuchs2Unix's user avatar
1 vote
1 answer
1k views

Is the ssh service renamed in in 19.04?

SSH seems to work fine, but running sudo systemctl restart ssh gives the error Failed to restart ssh.service: Unit ssh.service not found. (and the same for sshd) Did they rename it or something?
Zane Hitchcox's user avatar
19 votes
1 answer
125k views

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 ...
Alan's user avatar
  • 797
0 votes
0 answers
353 views

Password always required even if in sshd_config PasswordAuthentication no

I have 5 VPS Ubuntu 18.04 LTS. The SSH configuration is the same for everyone. No root access User2 with "sudo" permissions No password request Access via SSH Key RSA From my PC (Xubuntu ...
Dark Corner's user avatar
1 vote
0 answers
2k views

How to uninstall built in OpenSSH (7.2)?

I would like to ask for your assistance. I have compiled OpenSSH 7.9: sshd -V shows: OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019 BUT still the built-in one is in service, and I don't know how to get ...
Bobyonekenobi86's user avatar
0 votes
0 answers
460 views

powerline doesn't work in ssh server on ubuntu

I am using these command to open my ubuntu(18.10) server sudo apt install openssh-server sudo apt install net-tools sshd ifconfig and then I use the terminal on other device(termux on my android ...
NiaBie's user avatar
  • 33
2 votes
1 answer
18k 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
1 vote
1 answer
6k views

Ubuntu-budgie 18.04 agent refused operation when trying to ssh with public key

When I try to ssh using rsa key pair, I get the following error: debug1: Next authentication method: publickey debug1: Offering public key: RSA SHA256:2zjgjRVRDdbdfmjqip0o7M5vGXRmdH1vIvT88rrF3yE /home/...
Nima's user avatar
  • 31
0 votes
0 answers
390 views

Can ssh local but cannot from other computeres

My desktop is a Linux (Ubuntu) machine with ssh server configured. It used to work fine before I moved the desktop to a new network. Now I can ssh into the machine from itself (either by ssh localhost ...
Ankush's user avatar
  • 133
1 vote
0 answers
81 views

How to use 2FA with cert based SSH auth?

I used this guide to enable Google TOTP auth on Ubuntu 16.04. SSH only allows cert based auth (PasswordAuthentication no) I set ChallengeResponseAuthentication yes and restarted the SSH service. I ...
Gaia's user avatar
  • 921
1 vote
1 answer
967 views

Enabling SSH on boot via config files

How can I configure ssh service to run on boot other than via shell? Is it through /etc/init/ssh.conf ? If that's the case, what parametters should I look for in it? The reason I can't do this ...
InspectorG34'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
0 votes
0 answers
906 views

Cannot ssh on boot until I login (Ubuntu 16.04) [duplicate]

I am able to ssh into my machine once I log in to it, but I am not able to ssh into it on boot without first logging in. The machine boots, and then it shows the login screen. I want to be able to ...
ptjetty's user avatar
  • 103
3 votes
1 answer
6k views

Old SSH server version running after upgrade

We have an Ubuntu server running 16.04, which is used for a client website. The client has recently had a security audit done and one of the recommendations has been to update our OpenSSH version to ...
Onfire's user avatar
  • 141
1 vote
1 answer
17k views

ssh: Allow root to login without password [duplicate]

i want to login via ssh without password using root account. I have problem with /etc/ssh/sshd_config file. I set: PermitRootLogin without-password and StrctMode no but it doesn't work (i have to ...
user avatar
0 votes
0 answers
430 views

How to increase "screen buffer" when connected to the machine via SSH?

TLDR: I want to see a lot more of my screen via scrolling back when the command/script (e.g. ls -la /etc) displays results that doesn't fit in 1 screen. If you check the screenshot below, it doesn't ...
mrjayviper's user avatar
  • 1,555
1 vote
2 answers
792 views

Second ssh instance won't start after upgrade to Xenial Xerus - Permission denied

I've configured a second instance of my ssh-server. "ssh" will listen to port 22 but only allows private/public key login (via phabricator). "ssh2" will listen to port 266 with default sshd_config ...
schranktuer's user avatar
4 votes
1 answer
2k views

Why is ssh session still active if I've "killed" the ssh server?

I've right now encountered that after you have connected to Ubuntu 14.04 via ssh and you change the sshd_config into an invalid state so that service ssh reload will cause the server to stop listening ...
jirislav's user avatar
  • 621
1 vote
2 answers
1k views

Trying to understand and workon SSH. What happens on removing all the ssh ciphers from sshd_config

If we remove all the ssh ciphers from sshd_config file , will it allow to establish ssh connection by all the available ciphers of the current system ? Or there is a specific set which it will allow ? ...
Yash Khare's user avatar
0 votes
1 answer
4k views

Ssh to server in local wifi network without router access

I am new to setting up ssh server. I wanted to set up my desktop as a server at home so that I can run programs on my desktop remotely, after installed a few necessary packages, I could have my laptop ...
Sam's user avatar
  • 103
0 votes
1 answer
50 views

Communication between Host and Server with completely different sshmac/sshcipher

I have a little bit idea about sshcipher and sshmac. Recently i got to know that to change sshmac and sshcipher , we need to update sshd_config with required cipher/mac. Now the question here is : ...
Yash Khare's user avatar
1 vote
2 answers
1k views

Unrecognized Service ssh when building from source

So I have a web server that is running 14.04LTS because that is the latest Ubuntu Distribution I can have through my VPS. I have been trying to install OpenSSH 7.2p2 via building the source code via ...
Nick Welna's user avatar
1 vote
1 answer
403 views

Mitigating CVE-2016-3115 By Disabling X11Forwarding

I want to mitigate CVE-2016-3115. The report from OpenSSH states that the vulnerability exists when X11Forwarding is enabled. It shows as enabled in my /etc/ssh/sshd_config, but I don't know why. It'...
Sonny's user avatar
  • 1,255
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
0 votes
1 answer
392 views

Building openssh from source on ubuntu

Hi I'm building openssh from source. From source primarily because, I want to collect more logs than what openssh already writes in /var/log/auth.log file. In one of the c files of the source ...
raghu's user avatar
  • 11
1 vote
3 answers
2k views

How to run openssh-server compiled from source

I have compiled openssh source using ./configure make and make install Now it has compiled and installed binaries, config files and the server at /usr/local/bin /usr/local/etc /usr/local/sbin what'...
raghu's user avatar
  • 11
-1 votes
1 answer
4k views

SSH connection refused on fresh started Ubuntu 14.04. - Connection possible after restart of ssh until reboot

I'm a newbie to linux and ran into a problem with my new media machine in the living room. I want to control it over VNC from time to time and therefore installed openssh-server. From the beginning I ...
NoisyHH's user avatar
0 votes
2 answers
1k views

Cannot SSH into Ubuntu14.04 Server Remotely

So I am able to SSH onto the server when connected to the same network, but I need to enable remote connection. When I enter ssh -v user@serverIP, I get the output: OpenSSH_5.6p1, OpenSSL 0.9.8y 5 ...
atavel's user avatar
  • 17
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
0 votes
1 answer
77 views

Setup openssh to start when the computer boots

I have a headless server and I was wondering if it is possible to start openssh without logging in. It would start without the need for a password, so I wouldn't have to plug in a monitor every time I ...
user avatar
3 votes
2 answers
21k 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
2 votes
0 answers
699 views

sshd_config file is being overwritten on reboot

I need an AWS server to accept password authentication and whenever I remove the hash and set PasswordAuthentication yes After reboot or create image and launch a new instance, the # is added back ...
user306518'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
0 votes
1 answer
410 views

Does Ubuntu (server) go to sleep? Why does it take long to login? [duplicate]

I have several Ubuntu Server (12.04 LTS) virtual machines. Some are idle and some are processing background tasks, etc. However, when I try to login (SSH) to the servers, it often takes several ...
SofaKng's user avatar
  • 259