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
1 vote
1 answer
144 views

unmasking ListenAddress :: in sshd_config

what will happen if unmasking ListenAddress :: in sshd_config and restarting sshd service. Will I block myself out forever? Seems like I have done it.
lunar75's user avatar
  • 11
1 vote
0 answers
53 views

Script in /etc/ssh/sshrc ignore for one user

As I've read on couple threads, I configured a script in /etc/ssh/sshrc for it to send an E-Mail every time when somebody connects over SSH. That works pretty good but recently I started using ansible ...
NASH7's user avatar
  • 13
0 votes
2 answers
143 views

Setting DEBIAN_FRONTEND remotely

Is there any way to set DEBIAN_FRONTEND=noninteractive when executing a script remotely via SSH? Doing so I get this error: sudo: sorry, you are not allowed to set the following environment variables: ...
Socrates's user avatar
  • 2,473
1 vote
0 answers
43 views

ssh command on shutdown fails

I have an Ubuntu 20.04 server, I'm connecting to a UPS. I want the Ubuntu server to shut down a truenas server, also on the same ups. The idea is that the UPS software on Ubuntu server triggers the ...
Jujuh's user avatar
  • 11
0 votes
1 answer
115 views

No route to host

I'm creating an ubuntu server. I'm totally new. The first redflag is when the pc is turning on, before everything is loaded, it fails in "a start job is running for wait for network to be ...
befbukeeav's user avatar
0 votes
1 answer
94 views

issue with ssh into lxd container using ansible

I have created a dynamic inventory which fetch the created lxd containers (so that I don have to type the name of container each time) so here is the dynamic inventory plugin: community.general.lxd ...
Zakaria Ait Yakoub's user avatar
-3 votes
1 answer
109 views

I want to to disallow everything except ssh, e-mail, and http [closed]

If I use: sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow ssh sudo ufw allow http ...etc sudo ufw enable To block the world from entering my website execpt certain ...
Dan's user avatar
  • 5
-1 votes
1 answer
103 views

root ssh acccess is disabled and sudo user can not make root changes on vps Ubuntu server

I first created a sudo user from root ssh by using below commands on my Ubuntu 22 server: adduser username usermod -aG sudo username Then, I disabled my Root login by going to nano /etc/ssh/...
Matt Z's user avatar
  • 1
0 votes
2 answers
130 views

How do I tell if a given IP resolves to VPN network or somewhere locally?

I don't know how to title my question, but here's the thing. I'm on Ubuntu 22.04.3 LTS. I've got a GlobalProtect VPN configuration. I followed this article to be able to connect from Ubuntu's Network ...
sowiq's user avatar
  • 141
0 votes
0 answers
63 views

FTP user group & previous file and folder permissions is not getting assigned

I have successfully created a group(zep_group) and a few FTP user accounts(zep_user_1, zep_user_2, zep_user_3) within the same group(zep_group) on my Ubuntu server (Ubuntu 20.04.6 LTS). I have ...
Mano Mahe's user avatar
0 votes
0 answers
114 views

port 22: Connection refused, but only 60% of the time

I am running this: ssh_command = f'ssh -vvv -o StrictHostKeyChecking=no -i {private_key_file} ubuntu@{public_ip}' # Use os.system to execute the SSH command in a subshell os.system(ssh_command) ...
BigMistake's user avatar
0 votes
1 answer
50 views

Ubuntu sound settings are getting muted upon ssh login

Problem: Sound settings are being muted when the first user, other than the default user, attempts to login to Ubuntu through SSH. This issue is not related to any PC fault. It occurs whenever a user, ...
Brain's user avatar
  • 1
1 vote
0 answers
65 views

SSH connection refused and no ping reply from ubuntu server using other networks

I recently setup Ubuntu Server 22.04 to my old PC and got it running fine, until I tried to SSH it from another location and connection refused. I then tried to ping it which didn't work either. I ...
atahansta's user avatar
2 votes
1 answer
2k views

Issues after ubuntu 22.04.3 upgraded to linux 6.5.0-14

I have 2 issues since being upgraded to linux 6.5.0-14 from 6.2.0-39: #1: I'm unable to compile the modules needed for vmware workstation player 17. Version 17.0.2 build-21581411. At first it could ...
Frank's user avatar
  • 23
2 votes
1 answer
158 views

Setup Kerberos authentication with SSH

I have an Ubuntu server acting as the Domain Controller (domain.local) and a Ubuntu VM (ubu1) acting as a workstation. I wanted to ssh into the ubu1 VM with Kerberose using a keytab file. For this, I ...
Kavishka Gihan's user avatar
0 votes
1 answer
135 views

How to avoid Broken Pipe error from client side?

How do I prevent the Broken Pipe error from the client side of the ssh connection on ubuntu? Let's say that slurm is running on the server and I just made a salloc request. If the connection is broken,...
SO_32's user avatar
  • 163
4 votes
3 answers
820 views

Successful login IP address list

I know I need to look in /var/log/auth.log but I don't seem to have been able to grep only successful IP addresses. I wish to output to another file in a format: Accepted from <username /> from &...
Datadimension's user avatar
0 votes
2 answers
156 views

Openssh - Allow root access sftp and ssh in the same server [duplicate]

I want to configure sftp on my server to be accessed by root user. I changed my configuration of /etc/ssh/sshd_config to: PermitRootLogin yes AuthorizedKeysFile .ssh/authorized_keys ...
Baffer's user avatar
  • 1
1 vote
0 answers
37 views

Ubuntu Icon Problem and no SSH

Has anyone here seen the following issue: The system starts normally. After some time, the following issue occurs: I can't open anything, and the computer cannot be restarted
Edis's user avatar
  • 11
0 votes
1 answer
48 views

./build command not found

trying to install dssh - https://github.com/PWZER/dssh but the ./build.sh command is not found nor is any build command. Ubuntu 22.04.3 LTS any help appreciated
Lillinator's user avatar
1 vote
2 answers
335 views

Ubuntu "Connection reset by peer"

I have been trying to figure out this problem for days. I used to have a samba server and ssh server up and running in Ubuntu that I could connect to from my raspberry pi. I am unable to connect to ...
Noah Donald's user avatar
0 votes
0 answers
53 views

able to run the code through TERMINAL but getting time out error through IDE

i am using ssh.exeCommand("cd /root/newbuild/" + arg_obj["nbu_path"] + " && ./install < /tmp/NBU_10.3_response_master2") and triggering a file for ...
Vijay Durvesula's user avatar
0 votes
2 answers
79 views

How to allow user to SSH-connect to VM deployed on host without access to host itself

I have an UbuntuOS host (let say, 150.15.15.15) and another UbuntuOS virtual machine (192.168.7.2) deployed on that host. I want to configure SSH-tunnel on host so that remote user can connect to VM ...
JaSON's user avatar
  • 123
1 vote
0 answers
88 views

wifi not working when connect ethernet port ubuntu server, operate internet(wifi) and LAN (eth) at same time

I have searched for the same issue and there were some similar but none of the solutions worked for me. I have a PC running ubuntu server 22.04.3 it has a wifi adapter set at 192.168.1.111 I can ...
Tam's user avatar
  • 11
0 votes
0 answers
64 views

My SSH keys no longer work

For some reason my VPS ignores/bypasses the passphrase for my pubic/private SSH keys and logs me in automatically, without the need for a passphrase or password. I haven't made any changes or even ...
Hawk007's user avatar
  • 159
0 votes
0 answers
42 views

Ubuntu Server 22.04.3, installed gnome, no display

Had Ubuntu 22.04.3 Server installed on an older tower with VGA, DVI integrated video hardware. Had brilliant idea to install Gnome GUI system for easier access while trying to set up samba for home ...
standeg's user avatar
0 votes
2 answers
114 views

Ubuntu Server stuck searching 2 minutes on disconnected network adapter

Edit3: yeah I don’t have an interface folder in my network either weird Edit2: potential fix seems to be amending The Ethernet in /etc/network/interfaces from auto -name- to allow-hotplug I have yet ...
Gleb Kondratiev's user avatar
0 votes
0 answers
53 views

Creating ssh public key and copying using ssh-copy-id failing

I'm trying to setup an ssh public key configuration in order to mount an sftp share from my server onto my laptop via fstab. I have followed so many instructions and I believe I have done everything ...
Mister Chuff's user avatar
0 votes
0 answers
212 views

Trying to configure SSH server to use Google Authenticator 2FA on 22.04.3 Ubuntu Server

I followed this guide here https://www.techrepublic.com/article/enable-ssh-2fa-ubuntu-server/ to configure the first part after setting up Google Authenticator on the system. I couldn't log into my ...
James x1080's user avatar
1 vote
0 answers
254 views

Ubuntu 22.04. getting operation not permitted when tries to copy a password protected pdf file with sudo

I'm having a ubuntu 22.04 server. I copied a password protected pdf file to user home directory via scp and then tried to copy the same pdf in to same directory with another name. eg: sudo cp A1.pdf ...
Rifky's user avatar
  • 111
0 votes
0 answers
87 views

SSH Connection Stop After Some Time But CloudFlare Tunnel Works

I have a machine in my home which I use as a test machine and host some of my services, and to access those services from outside of my home I installed a CloudFlare tunnel as well. Now after some ...
Rahul Sharma's user avatar
0 votes
0 answers
131 views

ufw rule to allow address on the same subnet?

I have a server running Linux hosting a website. It uses ufw as a firewall. I have ports 80 and 443 open to external traffic. This all works. Now what I want to do is allow any traffic from my laptop ...
Mark Challice's user avatar
0 votes
0 answers
49 views

Rendering window on a ssh session

I came to you with a request, I'm trying to get output in the window format out of a ssh session on a linux server, the setup is as follows: Server Ubuntu 22.04 on a machine, ssh server on that, and a ...
Alfred Bitwise's user avatar
0 votes
0 answers
56 views

Seahorse (Passwords and Keys) - how to mark key as trusted

I have these 2 OpenSSH keys in Seahorse (Passwords and Keys), but the first one (that only has the golden key icon) is somehow not marked as trusted nor personal and is only displayed when I choose &...
jave.web's user avatar
  • 420
0 votes
0 answers
57 views

SSH to ldap client hangs when ldap server is not reachable on ubuntu 20.04

I am using ubuntu 20.04 VM as ldap client and docker is my ldap server. When ldap server is not reachable ssh to ldap client vm gets hungs. Below are the auth logs Dec 18 07:02:40 tpvm22 sshd[24790]: ...
Shaik Musthafa's user avatar
0 votes
1 answer
341 views

Full-Time RDP and SSH into Ubuntu

I'm a newbie - especially to Ubuntu (running 22.04 on the RP4B with no disk encryption). While the PI OS comes out of the box with full-time SSH capability - I'm running into trouble in trying to log-...
Tboon's user avatar
  • 23
0 votes
0 answers
68 views

Preparation for Ubuntu 22.04 LTS home server

I just setup Ubuntu 22.04 LTS Server Edition on my home lab PC. My Internet ISP provide me with dynamic public ip address, and I use freedns.afraid.org to update record for my public IP address. I set ...
VeriShare's user avatar
0 votes
2 answers
314 views

How to access own computer drive when using puTTY on a cluster

I am completely new to this (""coding"" and such), so this may be one of the most basic questions asked around here but couldn't find the answer anywhere and have been struggling ...
Thibault's user avatar
0 votes
0 answers
46 views

ubuntu server becomes unreachable through ssh over time

I'm encountering an issue with my Ubuntu server where, after a reboot and some time has passed, I am unable to connect through SSH or ping the host. I could trigger github actions that could run on ...
Dmytro's user avatar
  • 1
0 votes
0 answers
247 views

app for running VPN configurations (NapsternetV, HTTP Injector SSH...)

I need a VPN connection to access filtered content on the internet because there are so many filtered content in my country. I use nebstrent V and HTTP injector on Android. Is there an app or any ...
Sia's user avatar
  • 1
0 votes
0 answers
193 views

Creating network bridge between main machine(windows) and ubuntu server(hp g3 800 sff without wireless compatibility) not working as expected

URGENT I have a windows main machine that connects to the internet via wifi and a ubuntu server that cannot connect to the internet via wifi as it does not have this capability. I have discovered ...
bababooey's user avatar
5 votes
1 answer
384 views

What is an example use for a non-interactive login shell?

I understand it is extremely rare and the concept, but can't think of a use for it. I do have an idea that we may want to execute a script that has a command to login to a server through ssh, is that ...
Lukali's user avatar
  • 171
-1 votes
1 answer
299 views

Access files on Ubuntu Server from Win10

I have set up an Ubuntu Server with ssh so I can run commands and things like that from my Windows 10 laptop but I would like to be able to transfer files using maybe FileZilla or something similar, ...
Caleb's user avatar
  • 1
0 votes
1 answer
262 views

send_pubkey_test: no mutual signature algorithm

Here is the client log output after a ssh -vvv user@machine (I think this problem is related with the deprecation of sha-1). I have already tried to create a new key/par for ed25519, but it doesn't ...
ABu's user avatar
  • 245
2 votes
3 answers
2k views

How to enable SSH: 23.10 Raspberry Pi

Setup Raspberry Pi outfitted with 64-bit Ubuntu Server 23.10 USB-SSD MacBook and rPi are on the same LAN rPi LAN IP address verified with ifconfig Issue From MacBook: ssh [email protected] ...
gatorback's user avatar
  • 5,755
1 vote
1 answer
110 views

Notify-send scripted to several other ubuntu's distros

I start to wonder if it's possible to make a script to send notifications once to several other Ubuntus, i must say that not all the computers have the same Distro, having MATE XUbunutu LUbuntu and ...
Damaso.jpg's user avatar
4 votes
1 answer
127 views

Secure remote copy with exceptions

In order to use some data that are stored and produced remotely I first download them via scp servername:/.../big_directory/* ~/. There are many files and the command includes everything. These files ...
SO_32's user avatar
  • 163
0 votes
2 answers
193 views

Remote access from home when I'm doing a home lab

How can I access my Ubuntu Server GUI away from my home network?
ownak's user avatar
  • 11
1 vote
1 answer
191 views

rsync remote paths with spaces and autocompletion is not working

Running Ubuntu 22.04 I have a remote server that I can connect to with ssh. ssh remote So I can copy a file with rsync: rsync remote:text.txt . rsync will autocomplete tex to test.txt when I press ...
Janghou's user avatar
  • 5,699
0 votes
1 answer
434 views

supported authentication methods available (server sent: publickey)

I received admin user credentials to Ubuntu server, but when i try to ssh to it i get "FATAL ERROR: No supported authentication methods available (server sent: publickey)". the command that ...
Kamokoba's user avatar