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
126 views

How do I access Ubuntu via Remote Desktop?

I followed the link below and installed the GUI on Ubuntu Server 20.04 I've Installed XRPD (below) but I'm unable to access Ubuntu remotely. When I access the VPS's url I get connection timeout. ...
Brian Tracy's user avatar
2 votes
1 answer
142 views

'ssh-keygen' - creates ssh key pair but silently skips encrypting the public key. Why?

For example ssh-keygen -t rsa -b 4096 -C "test" -f test -N "1234567890" creates a public key beginning with -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNz.... instead of -----BEGIN ...
Craig  Hicks's user avatar
0 votes
1 answer
728 views

Forwarding incoming SSH traffic to a local Socks5 server (or other services)

The scenario is That a cloud Ubuntu server is running a Socks5 proxy server on a specified port; on this cloud server : Socks5 server serving on port 1515 (only local connections accepted) SSH is ...
Sam Jahangiri's user avatar
0 votes
3 answers
468 views

Some apps cannot open remote files mounted on SFTP

After using Xubuntu (18.04, 20.04) I recently got a new PC and installed Ubuntu 22.04. For some reason some apps just cannot open files in a remote PC mounted via SFTP. Some other apps they just can. ...
user171780's user avatar
7 votes
1 answer
2k views

scp: How to change ownership of folder and files while transferring files

When I transfer folder with files from srv1 with the username srv1 to srv2 with the username srv2 then the transferred folder and its containing files on srv2 are keeping the ownership srv1 scp -r /...
user19559647's user avatar
1 vote
1 answer
3k views

sshd banner exchange error messages

Starting yesterday, began seeing thousands of messages like this in the auth.log sshd[3635916]: banner exchange: Connection from 202.142.184.68 port 24571: invalid format Almost 17,000 occurrences of ...
Cardsfan's user avatar
0 votes
1 answer
415 views

ssh 2fa not working but works when i sudo

I have a problem with the 2FA enabled on my linux.. I made all the required things that are needed to enable the 2FA but i 2FA is not working when i want to connect to the linux OS with ssh. I made ...
king's user avatar
  • 11
0 votes
1 answer
6k views

Linux 20.04 to MobaXterm Connection Refused Problem

I am trying to connect Ubuntu Linux 20.04 to MobaXterm with SSH. I tried everything but MobaXterm gives error as "Network error: Connection refused" I have just started to learn Linux, I am ...
Omer Yasir's user avatar
2 votes
0 answers
248 views

ssh doesnt work with public ip address but just locally

I've a SSH server on my raspberry pi running on ubuntu. For a while I've used normally, then for some reason it stopped working with the public ip and when try to connect get this error: ssh: connect ...
van helsing's user avatar
0 votes
0 answers
42 views

ssh: connect to host 192.168.0.5 port 22: Connection refused but everything works fine [duplicate]

I am trying to SSH into my Ubuntu server but I can't connect. I'm using Ubuntu 20.04 and OpenSSH-server and ssh is installed. I also set a key with ssh-keygen
hahaly's user avatar
  • 1
1 vote
1 answer
199 views

I can't ssh into my home server outside my home connection. Why?

I can't ssh into my home server outside of my home connection. (Notice that connected to my wifi, the same which is connected my server, and ssh into my server's local ip I've success). On my server ...
carbonedavidee's user avatar
2 votes
1 answer
484 views

How to allow SSH chroot user to restart apache on host?

My first post here on Ask Ubuntu. I have an LAMP Ubuntu server which has two vhosts defined in /etc/apache2/sites-enabled. One of these sites (an external mirror site) must be maintained by an ...
Andy Woolford's user avatar
0 votes
1 answer
1k views

How to set up a remote server with GUI over SSH?

I have installed Ubuntu Server 22.04.1 LTS on a PC that I intend to use as a media server and compute node. Atop Ubuntu server, I have installed the default gnome desktop. I am able connect to this ...
HaveSomeCyanide 's user avatar
1 vote
1 answer
516 views

Problem connecting via SSH after upgrade to Ubuntu 22.04 using outdated WinSCP - version 5.13.4

We had to update a web server to get ahead of several EOL issues related to software we were running. Now that we have upgraded, our client is unable to connect to pick up files they need to pick up ...
Bms85smb's user avatar
  • 121
1 vote
1 answer
57 views

system thinks it is maxed out on storage

I seem to have run into a strange issue that is causing many problems. for context, I am sshing into a 22.04.01 server VM constructed on a truNAS network with 18.1G storage and 12G RAM. I am using ...
Thewolfhearted's user avatar
2 votes
0 answers
2k views

Is it possible to factory reset my Ubuntu Server?

The server is a physical server, so I have access to it, I could install Ubuntu via usb, but that would require me to bring a monitor to the other room, and access the hdmi port on the Gpu, which is ...
Onni Leivo's user avatar
0 votes
0 answers
139 views

Complete procedure for changing the background color to a different color for each different host

I am looking for a clear explanation on how to change the background color on a terminal depending on the host that is being ssh'ed into. Preferable requiring only local changes (but I will take a ...
Kvothe's user avatar
  • 625
0 votes
0 answers
186 views

Unable to access dotfiles and dotdirectories in ssh

The client is a Macbook Pro (MacOS 13). Server PC is Ubuntu 22.04. When I,ssh and do ls ~/.ssh or ls ~/.config from the server shell, I get an error cannot access '/home/username/.ssh': Permission ...
musako's user avatar
  • 201
0 votes
0 answers
1k views

SSH Bind Address - Cannot Assign Requested Address

I've got 2 NIC's, and just want to SSH from one specific interface. As you can see, the -b option in ssh doesn't seem to be able to use my address. Not sure why? $ ip a show enp8s0 | grep "...
john smith's user avatar
  • 3,013
0 votes
0 answers
298 views

Is there a Tabbed Connection SSH Manager for Linux?

I am looking for a free tabbed ssh manager to replace GnomeConnectionManager. I liked SuperPutty in Windows. Is there any alternative? What would you recommend? Reminna is cool but doesn't seem to ...
Mr.P's user avatar
  • 82
1 vote
0 answers
92 views

Connecting via ssh to remote and go to same directory as used on client

I have a very specific question. Is it somehow possible to connect from my client via ssh to a remote machine and stay on the same directory I used on the client? For example if I am in the folder /...
CFDaniel's user avatar
2 votes
1 answer
886 views

Unable to SSH to remote computer

I have two proxy (two ip address) connections in my Ubuntu computer, and I am trying to connect through ssh to my university supercomputer using "corkscrew", but not able to connect, it ...
Schrodinger's user avatar
1 vote
0 answers
364 views

Cannot SSH using IPv6 address until I ping it with the correct address

I'm having a weird problem when trying to SSH into a wireless SBC running Armbian (Ubuntu 22.04.01 LTS). When I try to SSH using the FQDN it doesn't respond: vmplayer@vm-play:~$ ssh -l potato potato-...
w.phyer's user avatar
  • 11
1 vote
0 answers
726 views

SSH "... request failed on channel 0" - remote system limits exceeded?

I am currently unable to connect to my remote workstation (I unfortunately do not have admin privileges) via SSH, instead receiving the error message shell request failed on channel 0 when trying to ...
1henno1's user avatar
  • 51
-1 votes
2 answers
788 views

ssh doesn't work with XUbuntu 22.04 [closed]

(related: Ubuntu 22.04 SSH the RSA key isn't working since upgrading from 20.04 / SSH and Telnet timing out. Ubuntu 22.04 lts but the solution provided doesn't work) Hi all, ssh works from home. I ...
Pierre's user avatar
  • 101
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
1 vote
2 answers
10k views

Migrate Ubuntu server from NetPlan to NetworkManager without disconnection (possibly over SSH)

I see that Ubuntu server after the installation comes as default with NetPlan with a DHCP configuration (at least in Ubuntu 22.04 focal fossa). Some users don't want NetPlan and just want ...
Valerio Bozz's user avatar
0 votes
1 answer
3k views

SSH service fails to start

I just created a virtual machine based on cloud images (of Lunar Lobster) on VMWare. Unfortunately it fails to start ssh. If I try to enable or restart the service I get: And if I check journal it is ...
Greenfly77's user avatar
0 votes
0 answers
355 views

ssh connection drops immediately, was working recently

I have seen a similar issue posted elsewhere, but mine seems to be slightly different. I am sshing into a Ubuntu 16 server, and it was working literally hours ago. I started a backup using tar -cvpzf ...
mginn's user avatar
  • 101
0 votes
1 answer
252 views

Can I know a key is copied to the server before it asks me for a password?

To login without password, I use ssh-copy-id I ~/.ssh/key_name root@server_ip. If I don't copy my public key, then each time I use ssh root@server_ip I would be asked for my password. Now I want to ...
Saeed Neamati's user avatar
0 votes
0 answers
94 views

Trying to access a server I just built. Every time I try to use ssh in my windows pc I get a timeout on port 22

I have a Linux ubuntu pc which I'm trying to set up as a server. when I put the command into Windows PowerShell it gives me a timeout on port 22 1. It also looks for the ssh config files, which don't ...
Grymn_'s user avatar
  • 1
0 votes
2 answers
1k views

Unable to change default SSH port

using VPS and Ubuntu (latest version). When I changed ssh port by going into sudo nano /etc/ssh/sshd_config it did not work. When checked via sudo lsof -i -n -P | grep LISTEN, it shows it's still ...
Kenyo's user avatar
  • 1
1 vote
0 answers
92 views

How can I send commands to a remote X11 session?

I have a remote Raspberry Pi connected to an old display. The Raspberry Pi is not configured correctly to display to this old display (it is basically sending the wrong resolution signal to the ...
BlandCorporation's user avatar
0 votes
2 answers
15k views

How to set ssh keys in cloud-init?

I am using cloud-init to set up a Raspberry Pi with Ubuntu Server 22.04.1. I would like to set the device's SSH keys so I can connect without being vulnerable to a man-in-the-middle attack. My ...
Dragon's user avatar
  • 169
0 votes
3 answers
2k views

Server Refused our Key after upgrading to Ubuntu v22

I upgraded our webserver to Ubuntu v22 and am now unable to login via Putty after restart, it says "Server Refused our Key," and a prompt "Disconnected: No supported authentication ...
Waqas Tariq's user avatar
  • 1,013
1 vote
1 answer
5k views

how to allow root log on on console on Ubuntu 22.04

I can ssh into my system as my normal user (non-root) and sudo to root, but on on vm-guest-console on vCenter, I'm not able to log in as a root. What setting is required to allow root log in to ...
vinay's user avatar
  • 11
0 votes
1 answer
21 views

SSH access even if your CMD is closed

Please I want some help My work manager gives me SSH access to a local server using the command : shh user@local_ip to work on a data sciences project The running time is so long and if I close my CMD,...
ayoub zinini's user avatar
4 votes
1 answer
797 views

How to configure Ubuntu terminal to jump/select words on Ctrl(+Shift)+Left and Ctrl(+Shift)+Right?

I use Windows 11, but I also have Ubuntu running in WSL or when connecting with SSH. In Windows PowerShell terminal, Ctrl+Left and Ctrl+Right jumps a word to the left or right. Adding the Shift key ...
mark's user avatar
  • 163
1 vote
1 answer
64 views

Bash export errors when ssh-ing in

Context: I am running an Ubuntu 22.04.1 virtual machine on my firewall using trueNAS and I solely interact with it using ssh Whenever I start a new terminal session I get these two messages: -bash: ...
Thewolfhearted's user avatar
0 votes
1 answer
236 views

How to keep a tool running in an Ubuntu VPS server? [duplicate]

I am ready to be ridiculed and embarrassed ha! So I have a Ubuntu VPS, and say I SSH into it and start Hydra, Hydra can take a while. And I usually don't stay on the VPS for that long, nor the ...
GuerillaRadio's user avatar
3 votes
1 answer
3k views

Block all incoming requests but local network

I have a dedicated server that I spun up an Ubuntu 22.04.1 LTS server on with a public ip address. I want to lock down the ssh port to only allow specific ip addresses through. I have 3 ip adresses ...
ErocM's user avatar
  • 511
0 votes
0 answers
37 views

Background scripts on Ubuntu server

I have a .sh script that runs an import of more than 6 thousand big SQL files. I'm connecting to my Ubuntu server via ssh. I want to start the script and close the connection for example. But in this ...
Ali Guliyev's user avatar
2 votes
2 answers
5k views

Getting this error "puttygen: error loading `name.ppk': PuTTY key format too new"

I have a file name.ppk. I'm want to login ssh with .ppk file on Ubuntu Terminal. I have try this post Login SSH with .ppk file on Ubuntu Terminal but getting this error "puttygen: error loading `...
Shou's user avatar
  • 21
0 votes
1 answer
48 views

How to search/list for all files starting with dot (.) but .htaccess is excluded from the list

Using SSH command line, I need to delete all the files starting with dot (.) but I don't want to delete .htaccess files. I tried so far to list them like this find . -type f -name ".*" It ...
RahimM's user avatar
  • 3
11 votes
1 answer
12k views

Unable to disable password authentication over SSH

I configured login by SSH key which is working but I can still login by password, which I don't want. I used sudo nano /etc/ssh/sshd_config to make the following changes: PasswordAuthentication no ...
Mário Alves's user avatar
0 votes
1 answer
142 views

Keyring doesn't stay unlocked

This is a new machine where I installed Ubuntu 22.04. Whenever I unlock my keyring to log into some server via SSH, it does not stay unlocked. This is particularly annoying when running an Ansible ...
Andre's user avatar
  • 429
1 vote
0 answers
1k views

SSH and Telnet timing out. Ubuntu 22.04 lts

This is my first post on stackexchange and I am a Linux newbie, so if I misconduct anyhow, let me know. Every time I try to ssh (or telnet) into anything that isn't localhost I cannot connect due to ...
klnstprx's user avatar
0 votes
1 answer
271 views

SSH from local machine to remote VM not working

I'm new to SSH and I've successfully SSHed from local machine to local VM now I'm trying to SSH into a VM which is hosted by a remote machine. Here's the error: vm@vm1-VirtualBox:~$ ssh my_local_name@...
Fixel's user avatar
  • 13
0 votes
0 answers
87 views

Handling manual inputs in ssh script

I am accessing a remote machine using ssh and have written a simple bash script on my host pc to copy files from the remote computer to the host. which is simply: scp remote@ip:/path/to/file/ ...
lost_in_paradise's user avatar
1 vote
1 answer
1k views

SSH into Ubuntu 22.04 server installer

I am trying to install ubuntu 22.04 remotely through SSH. It seems that the SSH server is running out-of-the-box but I do not know the username and password. Is there a default username and password ...
Wilko van der Veen's user avatar

1
7 8
9
10 11
125