Questions tagged [ssh]

SSH, or "Secure Shell", is a networking protocol for securely connecting to a remote computer over an unsecure network. SSH is also the name of the default command-line SSH client. This tag is for questions involving using and troubleshooting SSH connections, as well as setting up and configuring SSH for applications which use the SSH protocol. This tag should be used with other tags to better identify the environment of the problem.

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

ssh, telnet, apache and shellinabox servers blocked

I've been operating a "BBS-style" system on a Windows 11 computer for the last few years. Access came courtesy of WSL ssh, telnet, shellinabox and (for the web page) apache2. All was well ...
Mark Peterson's user avatar
0 votes
0 answers
345 views

Cannot SSH into host on local network using TCP wrappers, despite allowing "sshd : LOCAL" in /etc/hosts.allow

I have two servers running ubuntu server 22.04.2 LTS on my local network, the servers have the following names and IP addresses: ubuntuserver100 - 192.168.50.100 and ubuntuserver101 - 192.168.50.101 ...
Thomas Grusz's user avatar
0 votes
0 answers
378 views

keychain vs ssh-ident for WSL2

I tried to avoid retyping ssh passphrase for git. Turns out there's no one way to it. Not sure why keychain vs ssh-ident counts as opinion-based. Also, that question was asked for a full linux system ...
Anutrix's user avatar
  • 121
1 vote
1 answer
675 views

rsync error "rejecting excluded file-list"

So recently we updated 2 production servers and 1 development server for our websites. All are running Ubuntu 20.04. We also updated our build server that contains an installation of Jenkins. This one ...
Controvi's user avatar
  • 121
0 votes
0 answers
221 views

How do I setup ssh to prompt the user for more than 6 login attempts? I try to set it higher than 6 but it still stops at 6

I'm on ubuntu 22.04 LTS https://manpages.ubuntu.com/manpages/impish/en/man5/sshd_config.5.html MaxAuthTries is set at 16 but it still only prompts six times, I've tried it setting it higher but when I ...
neal wang's user avatar
0 votes
1 answer
207 views

How to force synchronization of SSH autherized keys from Ubuntu One account to Ubuntu Core IoT device

I added a few more SSH keys to the Ubuntu One account (https://login.ubuntu.com/ssh-key). Now, I want to make sure that these key are now sent down to the IoT devices that have Ubuntu Core installed ...
Kris's user avatar
  • 139
0 votes
2 answers
720 views

SSH into server running xinetd throws error "kex_exchange_identification: read: Connection reset by peer"

I have two servers running ubuntu 22.04.2 LTS with openssh-server 1:8.9p1-3ubuntu0.1 installed. And on both servers I have installed the same admin user. I want to test the legacy superdaemon xinetd ...
Thomas Grusz's user avatar
3 votes
1 answer
5k views

ssh: connect to host IP port 22: Connection refused

I'm trying to connect my laptop to another workstation with SSH protocol. On both of my Windows PCs I installed Ubuntu to work from the terminal (WSL). I've followed tutorials found online to do the ...
Helga Cassol's user avatar
0 votes
0 answers
354 views

How to login with headless raspberry pi with Ubuntu 22.04.2 preinstalled?

I have installed ubuntu-22.04.2-preinstalled-desktop-arm64+raspi.img on my Raspberry Pi 4. I was trying to login with default credentials but looks like it is disabled. I was trying to SSH the RasPi ...
B V's user avatar
  • 1
1 vote
1 answer
70 views

Cannot SSH to Ubuntu 18.04 After Switching from gdm3 to lightdm

Setup new Ubuntu 18.04 server with default gdm3. Installed openssh-server and was able to SSH to the server. Installed Teamviewer 15 and encountered issue where it fails to connect, and the solution ...
Suzan Kowalski's user avatar
0 votes
1 answer
1k views

Problem with SFTP: "Credentials were not accepted by the server"

I'm using an instance of Ubuntu 22.04.1 LTS via AWS, having enabled ports 22 and 443 in Ubuntu via ufw, and I'm using a Security Group with those same ports enabled. Although I'm able to connect via ...
Wayne Smallman's user avatar
1 vote
1 answer
48 views

Trying to install a video card but I have no video so I dont understand how to use additional drivers

I installed a GTX 970, but I have no video so I can't see. I guess I could SSH into my machine, but I do not know how to use the "Additional Drivers" while logged in on ssh?
Warloxian's user avatar
2 votes
0 answers
2k views

Ubuntu 22.04 LTS: SSH fails with `sign_and_send_pubkey: signing failed: agent refused operation`

I think my question is going to illustrate that I don't understand the relationship between ssh, ssh-agent, and gnome-keyring, but I've tried all of the fixes suggested in response to similar ...
tcquinn's user avatar
  • 256
0 votes
0 answers
38 views

When SSHed into Ubuntu Core how to know which container running from

I setup a Ubuntu Core 22 IoT device and I was able to SSH into it. Since Ubuntu Core is a container operating system ,I wanted to know if I am SSHed into the device which container is my SSH session ...
Kris's user avatar
  • 139
-1 votes
1 answer
207 views

Connection closed by port 80 ubuntu

i have executed this code to copy a folder by my desk to my ubuntu instance francesco@AirdiFrancesco ~ % scp /Users/francesco/Desktop/chimica [email protected]:/home/ubuntu only that after this ...
drMAIN's user avatar
  • 1
0 votes
2 answers
558 views

Sqlyog not connected to ubuntu 22.04

Trying connect to mysql database with SQLYOG latest version but got this error message "SSH ERROR: Fatal error network error : connection timed out"
Aram Asatryan's user avatar
0 votes
1 answer
50 views

SSH strange usage text

I can't understand ssh usage text: usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-...
Ivan's user avatar
  • 15
1 vote
1 answer
456 views

SSH configured ports not working

Just installed Kubunut 22.10. I configured my /etc/ssh/sshd_config with a custom port. # Snip Port 5555 AllowUsers bob # Snip Then restart the daemon to refresh the configuration: sudo ufw allow 5555 ...
C.D.'s user avatar
  • 331
1 vote
2 answers
168 views

Root invalid default shell

We have a server with ssh enabled, and we have: PermitRootLogin: no, and a user that is not in sudoers file. Another administator set invalid Shell for root so I can't get root access anymore. When I ...
Ivan's user avatar
  • 15
1 vote
0 answers
47 views

SSH linux root user has clipboard access but I cannot access clipboard with user I created

I am using linux for the first time in my life. I bought a dedicated server and installed the Ubuntu 20.04 desktop LTS distribution in it. local system is windows. I created a user in linux and I ...
Stability's user avatar
0 votes
1 answer
404 views

Can no longer use private key to SSH into Oracle Cloud server

This started yesterday after I attempted to execute an SCP command to send a tarball file I had created on my VM to my local machine, it came up with a text block informing me that the address was ...
oraclewoes's user avatar
0 votes
0 answers
312 views

Permission denied (publickey,password) Apache in Ubuntu 20.04LTS

I obtain the above mentioned error "Permission denied (publickey,password)" when trying to connect with ssh using my apache server. The framework I have used is Django and when deploying it ...
Angel del Pino's user avatar
0 votes
0 answers
19 views

Unable to clone GitHub private repo "Permission denied (publickey). fatal: Could not read > from remote repository" [duplicate]

I asked for help on stackoverflow and I was told it is more than likely a Ubuntu problem and was recommended to ask here. I'm trying to clone a private git repo to my web folder on Ubuntu. I've ...
CNRP's user avatar
  • 1
5 votes
1 answer
716 views

.ssh Directory has no id files after installing ssh service

I installed Ubuntu 22.04 and activated ssh service using sudo apt install ssh I tried to connect to my Ubuntu from my Windows using ssh via putty and it worked. putty asked to trust Ubuntu's key and ...
Keeran's user avatar
  • 187
2 votes
0 answers
254 views

ssh login works only over local network after upgrading to 22.04.1. Keep getting "permission denied" when I try away from local network

Everything worked fine(ssh) until I finally decided to do the upgrade from 20.04.1 because I was tired of seeing the "do-upgrade" message everytime I was logging in my server. So after the ...
duxx's user avatar
  • 21
-2 votes
1 answer
207 views

How do I make the ssh connection from my country only?

I tried to do this: apt install geoip-bin geoip-database I created this script in: /usr/local/bin/ nano filter.sh #!/bin/bash ALLOW_COUNTRIES="SA" if [ $# -ne 1 ]; then echo "Usage: `...
ibraheem mohsen's user avatar
0 votes
0 answers
151 views

Can't get ssh working on Ubuntu

I am trying to follow this guide to get phpMyAdmin installed on Ubuntu 20.04. The first step is to set up a non-root user, and it's here that I'm stuck. I cannot log in to root@public_server_ip. I am ...
cohara's user avatar
  • 1
1 vote
0 answers
39 views

What could cause a "user not in passwd" error when using su, ssh connection refusal on a Ubuntu 20.04 Web Server?

Something happened on one of our server running Ubuntu 20.04 that caused a co-worker who was logged in via ssh at the time to get a "user not in passwd" error when they tried to use the su ...
kevincorrigan's user avatar
1 vote
0 answers
255 views

How to unlock encrypted drives on a headless server?

I'm planning a homemade NAS-build with the following features: Standard Ubuntu server installation with SSH server Two Btrfs RAID1 drives on encrypted HDDs with dm-crypt NFS shared folders from ...
Prototype700's user avatar
-1 votes
1 answer
30 views

How can I ensure I can login to my laptop with a failing screen?

I have a Lenovo Flex with Ubuntu installed and the screen has been increasingly unreliable (flickering, sometimes just black). I'd like to ensure I can still use the computer when the screen dies, so ...
mowwwalker's user avatar
3 votes
3 answers
2k views

Ubuntu 22.10 RDP connection issues

I decided to set up a media box with Ubuntu 22.10, which I'm aware now uses Wayland by default. I am used to using VNC on X11, so haven't got much experience in the Wayland space or using RDP. I'm ...
coxe87b's user avatar
  • 541
0 votes
0 answers
26 views

Run interactive program from ssh then disconnect and reconnect [duplicate]

From my laptop I'd need to start a ssh terminal to a remote desktop in which I'll run a long running program testdisk or photorec, then once I setup my selections start the data recovery. Then I'd ...
useful's user avatar
  • 1,834
0 votes
0 answers
1k views

How can i solve Access denied in PuTTY?

I am trying to use PuTTY. However when I tried to log in I get an Access denied error. I don't think the password is wrong because I use the same password and IP address with ssh when I connect to the ...
sunShine's user avatar
1 vote
2 answers
104 views

Reducing latency before retrieving a local terminal when an SSH session has expired

When working on a remote server, I open an SSH connection in a terminal ssh remote_username@remote_host. For some reason, if I left this connection idle for too long, the terminal becomes ...
s.k's user avatar
  • 1,280
1 vote
1 answer
495 views

SSH attack - multiple root login attempts

Recently I noticed that someone is constantly trying to log in to root via ssh on my Ubuntu server. I noticed this about week ago and it is done from multiple IP addresses. At the very beginning he ...
Michalex's user avatar
0 votes
1 answer
11k views

Limit SSH max connections

I have a server ( ubuntu 20.04 ) and need to limit max ssh active sessions (to decrease CPU usage ) ,i have added this myuser hard maxlogins 1 to /etc/security/limits.conf but it doesn't work! ...
mastering's user avatar
0 votes
1 answer
513 views

How to administrate Server with Apache Guacamole RDG per ssh with TOTP enabled?

I set up an Apache Guacamole server (v1.4.0) on Ubuntu 22.04 LTS. The modules guacamole-auth-jdbc-mysql.jar, guacamole-auth-ldap.jar and guacamole-auth-totp.jar are also installed. The openssh-server, ...
Christian's user avatar
0 votes
1 answer
153 views

What does -L mean in ssh on ubuntu?

I get this error when I try to connect to my server in Ubuntu to a port other than port 80 (Apache). [-i identity_file] [-J [user@]host[:port]] [-L address] I added port 8972 to the list of Apache ...
iman's user avatar
  • 1
0 votes
1 answer
2k views

How to enable a specific port on Ubuntu version 22 so that it is accessible to outside world?

How to enable a specific port on Ubuntu version 22 so that it is accessible to outside world? I am already logged into the server through ssh using port 22 and able to successfully execute all the ...
Nital's user avatar
  • 101
1 vote
0 answers
272 views

Internet connection broken after installing VPN

I installed https://hide.me VPN on my Ubuntu 22.10 server. https://github.com/eventure/hide.client.linux I was using XRDP to control the server with a GUI. After I enabled the VPN, the XRDP connection ...
Tobi Akinyemi's user avatar
0 votes
1 answer
2k views

Enable ssh login with password for a user

I am the admin of a Ubuntu 20.04 server and I want to enable ssh login for a user through password, rather than using key pairs. The /etc/ssh/ssh_config file on the host looks like this (<username&...
A.Manfreda's user avatar
3 votes
1 answer
15k views

Authenticator provider $SSH_SK_PROVIDER did not resolve SSH Connection ubuntu server

Hi everyone I'm using an Ubuntu server and I want to allow the access through any network in the world. I configured the static ip address. I have mapped the port 22-22 in the router configuration I'...
PietroPutelli's user avatar
1 vote
1 answer
141 views

Which binaries should be available for the user to change password via ssh

I have a user that has a rbash as default shell (in order to limit his privileges). I also changed his default bin directory to cut-off most binaries from his PATH. User should time to time change his ...
Piotr Zych's user avatar
1 vote
0 answers
60 views

setup SSH access for another user without sending him the private key [Ubuntu 20.04]

I need to abilitate ssh access on a server for another non-root user (I am root). I have created a ssh pair for him on the host, copied the public one in his ~/.ssh directory as .ssh/authorized_keys ...
A.Manfreda's user avatar
0 votes
0 answers
97 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
161 views

Access to remote server via SSH via pem key requests 2 set of password (key and user)

On a remote server, I would like to access via ssh only with a pem key, which is password protected, but I'm being asked for the user account password as well I created the account which I want to use ...
FeDos's user avatar
  • 166
0 votes
1 answer
8k views

SSH server stopped recieving connections after reboot and kernel upgrade

I am running Ubuntu 22.04.1 LTS on a server, and this morning I ssh'd in to it from the Termius app on my phone to run update and upgrade as per usual, then rebooted it twice to install a kernel ...
BulletproofCoffy's user avatar
0 votes
0 answers
226 views

can't connect to the Ubuntu server

I am trying to connect to my Ubuntu server using ssh command on Ubuntu 22.04 after about a minute it shows me a timeout error I tried disabling firewall or this command : sudo ufw allow ssh and I'm ...
Hafez's user avatar
  • 1
0 votes
0 answers
279 views

Port forwarding in Ubuntu 20.04 causes pings to fail

I'm trying to forward ssh port to connect my servers together. Something like this: Local Machine === (ssh) ===> Server A === (ssh) ===> Server B My Servers aren't in a same location. They're ...
Mateo Garcia's user avatar
2 votes
0 answers
305 views

Auditd TTY Settings for Ubuntu Server 20.04

I am on Ubuntu 20.04 Server. I have auditd installed and configured. Question How can enable TTY logging via auditd? In /etc/auditd/rules.d/audit.rules I have: -w /etc/securetty -p wa -k login -w /...
nightwatch's user avatar

1
6 7
8
9 10
125