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
2 votes
1 answer
329 views

What is the state of the art setup for encrypted home directories which allow remote SSH login in 2022/2024?

Question What is the state of the art replacement for ecryptfs, while allowing user logins through SSH without a "master" full disk encryption (= FDE) password? Context A long time ago ...
LiveWireBT's user avatar
  • 28.7k
2 votes
1 answer
485 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
2 votes
1 answer
107 views

I swapped to cloudflare for free SSL certs, how do I SSH?

I am a novice, just running a personal web server for the first time using word press. Main goal just doing it as a hobby and learning the correct way to secure things. Ubuntu 22.10 I've got a couple ...
Silently's user avatar
  • 603
2 votes
1 answer
1k views

Generate SSH key on Ubuntu Server or on own computer

I installed Ubuntu Server (22.04) on an empty server and I am accessing it on my own computer through MobaXterm. For one of the applications I want to install on the server I need an SSH key. Since I ...
cbass's user avatar
  • 25
2 votes
1 answer
4k views

How to run google-chrome-stable from a remote SSH session on Ubuntu 20.04?

I have installed google-chrome-stable on my Ubuntu 20.04 instance. I also installed a Gnome desktop on this machine. I know from htop that the gnome-shell is running and working (have tested it using ...
Pablo's user avatar
  • 121
2 votes
1 answer
3k views

Install OpenSSH with older OpenSSL version

For educational purposes, on Ubuntu Server 18.04 I've downloaded OpenSSH_7.6p1 4-Ubuntu0.1 which should be exposed to SSH enumeration. When I run ./configure, it says there's a problem with the ...
testermaster's user avatar
2 votes
1 answer
851 views

bring the internet through an ssh tunnel using a tinyproxy

Hy everyone, I ask you for help in order to achieve the following (sorry for my English). I have ssh connection from a VM1 to another VM2 (using openBSD), I have internet connection in VM1 and I want ...
Mr_sadness_face's user avatar
2 votes
2 answers
1k views

vBox Server w. Bridged Network Will Only Connect on Home Wifi

My debian 10.5 vBox server on ubuntu 20.04 host will not connect to the internet, nor host to guest if I am not on my home wifi network. (vBox 6.1) I can't ping the server from the host to the server. ...
nightwatch's user avatar
2 votes
1 answer
170 views

How can a reverse-SSH connection be launched and maintained on Ubuntu boot with systemd?

My mum has a wee laptop that needs, when it boots up, to reverse-SSH connect itself to a server (so I can help out when needed). I'm struggling to get the connection to persist when it is started by ...
BlandCorporation's user avatar
2 votes
1 answer
1k views

Why can't I run programs after closing SSH connection using setsid, nohup or disown? [duplicate]

I am attempting to run a program 'a.o' on a remote server. To keep it running after closing SSH connection, I tried the following: setsid ./a.o nohup ./a.o ./a.o & disown -h %1 None of these ...
edwardliang2019's user avatar
2 votes
1 answer
4k views

failed: ssh connection failed: 'Timeout connecting to ... (Multipass)

I got the error ... failed: ssh connection failed: 'Timeout connecting to 10.156.58.216' when running both multipass ls and multipass shell blog. I cannot list my instances and log in my instances. ...
Super Kai - Kazuya Ito's user avatar
2 votes
1 answer
2k views

Transfer files using scp while connected to ngrok

I installed ngrok to connect via ssh to my work server from home or anywhere. The ssh connection works perfectly and I have easy access to my files. The point is that I do not know how to copy them to ...
Henry Navarro's user avatar
2 votes
1 answer
288 views

Help! cant seem to get 2FA to work for my AWS ec2 SSH

Hi I have tried the solution online to include a 2FA system inside. even after I log out it still doesn't require a 2FA and log in as long as a PEM is present and I am not sure what I am doing wrongly ...
Claus's user avatar
  • 23
2 votes
1 answer
814 views

WSL: tabTitle not overwritten when using ssh

I'm using WSL with Ubuntu 20.04. When I open Windows Terminal, and make a ssh connection to my server, the tab title stay the same. So the Tab Title is still the username@password from the WSL, not ...
bmwGTR's user avatar
  • 31
2 votes
1 answer
681 views

Permission denied (publickey) when sshing

As the title says, I started getting the Permission denied (publickey) error today. I was able to log in this morning before this started no problem and this seems to have started happening after I ...
WTFranklin's user avatar
2 votes
2 answers
14k views

Multi-user remote desktop from windows to linux machine

What are the options to have multi-user remote desktop functionality on a workstation running Ubuntu 18.04.5? Remote users will be running Windows, and connectiing to a Ubuntu machine. Ideally every ...
tesman's user avatar
  • 21
2 votes
1 answer
736 views

Unable to switch Linux boot order via SSH

I have to Linux dist installed on two separate HDDs, currently I' m working from home so sometimes need to switch OS back and forth. I tried all these steps from this link: Set “older” kernel as ...
StNickolay's user avatar
2 votes
1 answer
2k views

How to SSH to Ubuntu with dynamic IP

I want to be able to SSH to my home computer with lubuntu 18.04 from my tablet computer when I am not at home. I need this access to practice in programming when I cannot be in front of computer. I ...
vasilyv's user avatar
  • 21
2 votes
1 answer
2k views

Why SSH on Ubuntu 18.04 is suddenly defaulting to the diffie-hellman-group1-sha1 key-exchange algorithm?

I have a Ubuntu 18.04 LTS server to which I normally connect via Putty from Windows 10 Pro (1903) without problems. Recently I am getting a warning from Putty that "The first key-exchange algorithm ...
sirgatsen's user avatar
2 votes
1 answer
651 views

Ubuntu: tried to move home directory to other partition, no SSH access

I had to move the home directory to a different partition because the old partition is full. Followed this tutorial: https://help.ubuntu.com/community/Partitioning/Home/Moving I made a mistake when ...
Daniel's user avatar
  • 21
2 votes
2 answers
6k views

How to transfer file from MacOS to Ubuntu Server?

I tried the following command using my Mac Terminal scp -rp /path/file user@SERVER_IP:/path/destination/folder It gives me following error: user@SERVER_IP: Permission denied (public key). lost ...
Maqsud Inamdar's user avatar
2 votes
1 answer
2k views

If I change the UID of the user I SSH into the machine as, are there going to be problems?

A remote machine has a user that I SSH to. I then am that user. A key exists for this user, no password login. Suppose I were to change the UID/GID of said user, will this cause problems logging in ...
KdgDev's user avatar
  • 263
2 votes
1 answer
3k views

Communicating via a local socket or named pipe

I'm reading a book that is related SSH. I can't figure out what this sentence means. SSH clients communicate with the agent via a local socket or named pipe whose filename is stored in an ...
Smile's user avatar
  • 1,099
2 votes
1 answer
2k views

How to disable pam_mount if no password is provided (i. e. authentication with an ssh-key)?

I'm using pam_mount to automatically mount SMB/CIFS shares on login of a user and this works so far, but when someone authenticates without a password (via ssh-key) the mount fails because there is no ...
Sethos II's user avatar
  • 541
2 votes
1 answer
2k views

Why has IPv6 mngtmpaddr stopped responding?

19.04 I have been using IPv6 on my LAN for a few weeks now. Ping, SSH, NFS -- all fine. Three 19.04 machines, all good. Yesterday, after an update, the IPv6 stopped working. Processing a request to ...
Stephen Boston's user avatar
2 votes
1 answer
3k views

How to authenticate with a user's Gitlab username and password through a bash executable

So this is in addendum to my question posed here. Thank you to @dessert who helped a lot with that question. So I am trying to authenticate a Gitlab user by using their username and password, and ...
a.mosallaei's user avatar
2 votes
1 answer
1k views

acces denied. static IP. netplan. ssh

I have an old computer, and I decided to make a server out of it, install Ubuntu 19.04 server on it, and everything was fine until I tried to configure a static interface. I ordered it from the ...
Andry Kritsun's user avatar
2 votes
1 answer
586 views

How do I configure my SSHD to use a different shell?

Operating System: Ubuntu 18.04.2 LTS (Server) Kernel: Linux 4.15.0-54-generic Architecture: x86-64 When I SSH into my box it uses the MOTD, PS2 and shell from my local profile of the server and ...
Waylon's user avatar
  • 31
2 votes
1 answer
17k views

Cannot connect to SSH server: port 22: No route to host

I want to connect my laptop to a router running ssh server with the static IP address of 192.168.0.1 on the ethernet interface. I could do so previously, but now for some reason, it says ssh: connect ...
Masoud's user avatar
  • 163
2 votes
2 answers
1k views

Bash script: switch between two terminals to execute commands

I want to have a script that first connects me to a remote pc with ssh and executes some commands there. These commands start a process, which will run forever (stops with user input). Now, I must run ...
LJag's user avatar
  • 123
2 votes
1 answer
217 views

Changing listening ports with openSSH

i recently decided to turn my old desktop pc into a linux server where i can host my files etc. I followed a tutorial which used openssh and after installing it and configuring some files it works ...
Stelios Papamichail's user avatar
2 votes
1 answer
15k views

Open ssh error: packet_write_wait: Connection to x.x.x.x port 22: Broken pipe

First i am going to explain what I'm trying to do. I have set up a webserver running ubuntu server on top of vmware-esxi. I want to use SFTP over SSH to upload my website's code. We did this in a php ...
Hayden Mumm's user avatar
2 votes
1 answer
3k views

How to open remote folders in Dolphin

We have multiple repositories on our server, that we can only compile and run on that server. I have a XUbuntu machine and on Thunar I mount the remote folder with ssh://[email protected]. Then, ...
a.sam's user avatar
  • 123
2 votes
2 answers
7k views

ssh-add -l Error connecting to agent: Connection refused

I'm using Ubuntu 18 on Windows Bash When i launch Ubuntu I can ssh-add without any problem. Then I connect to a remote server ssh user@address The ForwardAgent doesn't work (git pull, for example ...
Haim's user avatar
  • 273
2 votes
1 answer
554 views

Accessing Python interpreter in Windows Subsytem for Linux, error in sshd_config?

I'm running into an issue with following a tutorial on How to configure a remote interpreter through WSL for PyCharm. My specific issue comes during the prerequisite part of this tutorial. I get up ...
Tyberius's user avatar
  • 130
2 votes
1 answer
3k views

External connection from SSH [closed]

I installed on my Ubuntu 16.04 the openssh-server and wanted to access my pc remotely through the terminal of other networks, such as the university, for example, but I'm only able to access through ...
Gustavo Luiz Bispo dos Santos's user avatar
2 votes
1 answer
7k views

How to install Pageant or other on Ubuntu

I'm currently trying to install Pageant on Ubuntu 16. I'm used to use Putty for ssh and Pageant for the connexion. I've been on multiple sites and I can't find my answers: How can I download Pageant? ...
mr_info's user avatar
  • 23
2 votes
1 answer
1k views

I don't need a display, still "X11 connection rejected because of wrong authentication." error

I have a very simple problem, I have two users on a remote machine, user1 has administrative privileges and user2 does not. When I ssh from a local machine to the remote machine and login to user1 and ...
quanta's user avatar
  • 249
2 votes
1 answer
6k views

SSH uses fake authentication for X11 forwarding

ssh -X -v says that I don't have xauth data and it uses fake authentication for X11 forwarding? I have put ssh_config X11 to "yes". Same with sshd_config. In /etc/ssh/ssh_config, I have removed the #...
user avatar
2 votes
1 answer
2k views

Using ssh in cron script

I have a problem running a ssh from crontab against a Fujitsu DX200 storage appliance. When running the command from terminal everything works okay connecting using RSA keys, but when I embed the ...
Soren A's user avatar
  • 6,783
2 votes
1 answer
2k views

Strange terminal behaviour over SSH from WSL to Ubuntu server

Whenever I connect to a Ubuntu server from my Windows machine, inside of of Ubuntu installed in Windows Subsystem for Linux the terminal is acting very strangely. This might sound crazy but whenever ...
saidaspen's user avatar
  • 557
2 votes
2 answers
415 views

How can I rsync to all remote connected host?

I'm using following command to transfer file using rsync to only one connected host: rsync -az -e ssh /path/to/source 192.168.8.8:/path/to/destination This is the case of static ip addesss. But in ...
d a i s y's user avatar
  • 5,511
2 votes
2 answers
1k views

I accidentally deleted a file while it is still transferred via SCP. What happens?

I have created a .tar.gz file for backup purposes. While it's still in the middle of being transferred via SCP (it's a 6 GB file), I accidentally deleted it in the SSH session. The SCP transfer is ...
Thomas Weller's user avatar
2 votes
1 answer
485 views

Multiple client for one private key to ssh into the server

I now connect to my Ubuntu server with a rsa key pair from my desktop! But I am not sure what to do to connect from my laptop to the server!!! Do I need to create another key pair? Can I simply copy ...
Edwin's user avatar
  • 129
2 votes
1 answer
196 views

What is SSH-Add and why is it installed in my Kubuntu?

Currently it is listed under 'Internet' however clicking it does absolutely nothing. Running 'ps aux | grep sshd' results in: kdenoob 3867 0.0 0.0 14224 1016 pts/1 S+ 14:12 0:00 grep -...
IAmTheKDENoob's user avatar
2 votes
1 answer
16k views

openssh-server can't connect remotely

I've got a fresh install of 16.04.3 desktop with openssh installed. I can connect to ssh on the same machine, but not across my internal network. ufw is inactive. The server host cannot be pinged by ...
George's user avatar
  • 21
2 votes
1 answer
1k views

How can I keep SSH connection alive?

I use Ubuntu 14.04 on my server and I've added these lines into /etc/ssh/ssh_config: (as it's mentioned here) ServerAliveInterval 300 ServerAliveCountMax 2 ClientAliveInterval 300 ClientAliveCountMax ...
Martin AJ's user avatar
  • 191
2 votes
1 answer
967 views

Ubuntu 16.04.3 LTS starting vino / rdp from SSH

Ok, this is a weird one. I created a custom image that I then uploaded to a cloud provider. I only have SSH access to the box, and would like to start a regular lightdm/unity session for another user ...
Peter Party Bus's user avatar
2 votes
1 answer
2k views

issue still ask credentiels with rsync over ssh with sudo

I want to sync 2 servers with rsync. Os are Ubuntu 16.04 I'm using a user named here syncuser user is in sudo group, on both servers in /etc/sudoers I put (on both servers) syncuser ALL=NOPASSWD: /...
Fabrice Gossart's user avatar
2 votes
1 answer
1k views

SSH connection can be established but sftp connection is denied via terminal or any client

Here is my sshd_config # Package generated configuration file # See the sshd_config(5) manpage for details # What ports, IPs and protocols we listen for Port 4422 # Use these options to restrict ...
FightForJustice's user avatar

1
35 36
37
38 39
125