People who code: we want your input. Take the Survey

Questions tagged [ssh]

SSH, or "Secure Shell", is a networking protocol or client using SSH for securely connecting to a remote computer. This tag is for questions involving using SSH and troubleshooting SSH connection problems 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. Questions should contain any logs from client and/or remote (see "ssh -vvv").

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

How to do the X11 forwarding over SSH with a private network (10.x range IP address) generated by a QEMU emulated OS (Raspbian) on my Ubuntu 21.04 X64

I'm running the raspbian os armhf emulated with qemu on my jetson nano arm64. It works decently expect for the fact that this architecture can generate only an orthogonal network configuration with a ...
-1
votes
0answers
20 views

connecting two VM using SSH

how to use iptables on two ubuntu virtual machines so that the first virtual machine can ssh to the second, but not SSH from the second machine to the first machine. How to configure?
0
votes
0answers
27 views

How do I connect to Ubuntu Server on the local machine from Ubuntu Desktop?

Currently I am running an Ubuntu Server and Ubuntu Desktop on a virtual machines in Windows. My goal is to install Snipe-IT and for this I need to make some configurations on the server. But it seems ...
0
votes
0answers
31 views

rsync (ubuntu 20.04) to Synology DS218 option -a doesnot preserve user name and group of files

I have been on the internet searching for my problem. I use rsync to copy files from my ubuntu 20.04 desktop to NAS Synology DS218+. It worked fine with ubuntu 18.04. I was able to reproduce the error ...
0
votes
0answers
16 views

SSH MOTD System information as of BLANK but only sometimes?

I'm running ubuntu 21.04 and I have a problem with motd. Welcome to Ubuntu 21.04 (GNU/Linux 5.12.9-051209-generic x86_64) System information as of Thu Jun 10 11:00:03 AM CEST 2021 Last login: Thu ...
0
votes
1answer
35 views

How to edit UTF-8 files with vim

How can I edit UTF-8 files with vim? There is a problem with german special characters like 'Ä', 'ü'. There are some in the comments. vim shows Ã~D instead of 'Ä' and ü instead of 'ü' then. (I hope ...
0
votes
0answers
92 views

ssh login haults in between, and terminal freezes

When I try to log into my remote Ubuntu server, I log in successfully, but my terminal freezes, displaying only half of the welcome banner. This is how my terminal looks when in freeze : Welcome to ...
0
votes
0answers
21 views

Non copy/paste public key based SSH authentication

I want to remove the process of manually copying the public keys to each one of the servers for granting access. The main problem that I'm trying to solve here is: There are multiple servers across ...
0
votes
1answer
31 views

Add ssh key to local ubuntu

I have a ssh key and key.pub that I got from digital ocean for a vm I have for ubuntu. I have a local ubuntu from which I want to copy files to the vm using scp. The problem is I can't get keys to be ...
1
vote
0answers
19 views

remote desk cannot connect to the remote computer error via XRDP using Ububtu 20.04vps

I am trying to access my vps ubuntu through remote desktop connection but its not working and gives error remote desk cannot connect to the remote computer with 3 option can anyone help me how it will ...
0
votes
0answers
18 views

No-IP doesn't work in my raspberry yet

I have a Raspberry Pi 3 with OSMC and a Nextcloud server that I usually used outside home using No-IP. I had to reinstall apache2 one month ago, and I can't acess anymore from outside to it. If I try ...
0
votes
0answers
46 views

Can't connect to VM after windows reboot

I have tried all the solution I can find. Still can't connect. I use VMware to build my VM. And I use putty to connect my VM. After a few days use, I can't use putty to connect to my VM. I have try a ...
0
votes
0answers
32 views

Changing the default port without editing /etc/ssh/sshd_config

The standard way to change ports, of course, is to edit /etc/ssh/sshd_config. Since I'd really like to avoid messing with the vanilla ubuntu to the greatest extent possible,I'd prefer if it is ...
0
votes
0answers
37 views

How to SSH into a ubuntu server over the internet which cannot be port-forwarded or is behind a CGNAT?

I have a computer with ubuntu server(18.04) installed on it I want to SSH into it and control it remotely over the internet but it cannot be port-forwarded because I connect it to internet using my ...
0
votes
1answer
29 views

Ubuntu server 20.04 SSH tunneling

Currently I'm running Ubuntu server 20.04. Right now If am connected to ExpressVPN then the SSH got disconnect immediately. How to allow ssh to the server while it's connected to VPN.
2
votes
3answers
62 views

ssh terminal always freezes after ~ 2minutes of inactivity

I have a remote server on ubuntu 20 and locally I'm using ubuntu 18. Bit of an open ended question since I'm unsure what specifics to post to diagnose my problem... I am able to ssh in to my remote ...
0
votes
0answers
15 views

Connection problems with Atlas MongoDB Cloud Security related

Folks, I had a strange problem here. I'm running Kubuntu 20.04 focal fossa in my dual boot T430 notebook. I can't connect to my MongoDB atlas cloud through my Linux machine directly with no param. Nor ...
2
votes
0answers
35 views

How to run multiple scripts one after the other on a remote server after doing sshpass from by local server to the remote server?

I ssh to the remote server directory using sshpass ssh -t remote_server_name "cd /desired_directory/; exec $SHELL -l" Now I want to run a few scripts inside that directory. I am trying ...
1
vote
1answer
589 views

How to install an X11 server without running a desktop environment

I'm running Ubuntu Server 20.04.2 LTS and would like to be able to serve X11 applications over SSH without a desktop environment running on the server. I'm able to configure X11 forwarding and run ...
0
votes
1answer
27 views

History and autocompletion do not work in SSH PAM session (openssh-server, libpam-ldap and nscd)

I configured a Linux Ubuntu 20.04 LTS VM, to authenticate users in the LDAP base and it worked correctly, however, when trying to repeat commands already executed, as we normally do in Linux, pressing ...
0
votes
0answers
12 views

Vagrant server not running in host machine

I was trying to create a server for running Django app. I installed a virtual box and initialize the vagrant in my application. Vagrant file: # -*- mode: ruby -*- # vi: set ft=ruby : # All ...
0
votes
0answers
21 views

How to connect to a server via 2 Jump host servers ? (For SSH and File transferring)

I currently use Mobaxterm on top of Wine for this task. But Mobaxterm runs very slowly in my Ubuntu 20.4 VM and most of the time, it gets stuck. Is there any other easy solution for SSH and File ...
-1
votes
1answer
52 views

how to copy a file to another file in separate directories?

So I have created to vm's with the ubuntu 16.04 version. I'm trying to copy my public key into the authorized_keys file, how I have done this is with the command cp id_rsa.pub home/vagrant/.ssh/ I ...
2
votes
0answers
37 views

Scheduling using systemd on Ubuntu on a Raspberry Pi

We have a Raspberry Pi, running Ubuntu 20.04 LTS, which is used to run several regularly scheduled jobs. The jobs consist of Python scripts, and are run using systemd timers and services. This worked ...
0
votes
0answers
41 views

pywhatkit : KeyError: 'DISPLAY' from pywhatkit Library on Linux

I am able to run this code on the spyder (python 3.9), but when I run same code on the Linux. It is giving KeyError: 'DISPLAY' Python code import pywhatkit sender = "++++++@gmail.com" ...
-2
votes
1answer
36 views

Error while logging through ssh on ubuntu

I was trying to access my raspberry pi 4 from my ubuntu machine through ssh and when i rite the following command in my terminal ssh @ipaddress I am getting this following error. I am not sure how to ...
0
votes
0answers
26 views

How to connect ubuntu to my iTerm on Mac through iterm

Hope you find my question fine. I am new here, so please don't judge me that much. I am trying to connect to my ubuntu to my iTerm on Mac, both application is on my laptop, I inputed command in ...
3
votes
1answer
88 views

Can I write a bash script and add it into right-click list of the graphical file explorer?

I am sort of new to Ubuntu/UNIX. I frequently need to use an ssh terminal over a device that I also mount via sshfs. I was wondering if it's possible to write a bash script like this, and have it ...
0
votes
2answers
47 views

Ubuntu Server 18.04.5 Internet not showing up on network

Recently installed Ubuntu Server 18.04.5 on a PC made somewhere around 2010s, however when I try to install net-tools (or any package for that matter) it says Temporary failure resolving ... In my ...
0
votes
1answer
22 views

OpenSSH showing different version from installed version on remote connection

On my server on digital ocean, I upgraded OpenSSH to version 8.6p1. user@server:~# ssh -V OpenSSH_8.6p1, OpenSSL 1.1.1 11 Sep 2018 But when I check the OpenSSH version from the remote client it is 7....
0
votes
0answers
15 views

Make SSH agent to confirm the passphrase with interval (AddKeysToAgent confirm interval example)

Right now, the system is asking me for the SSH key passphrase only once during the session. However, I don't find it secure and I would like it to ask me for the password periodically (e.g. every 10 ...
0
votes
0answers
20 views

Installing dlib is taking a lot of time

I created a linode instance with the following specs: Ubuntu 20.04 1GB RAM 25GB Storage I installed cmake, wheel and then tried installing dlib with pip install dlib. Building wheel for dlib (setup....
2
votes
1answer
63 views

problem with openssh-server on ubunu 20.04

Something seems to have gone wrong with openssh-server on my machine. I'm on Ubuntu 20.04. I noticed this trying to install another package that depends on openssh-server. When I tried to re-install ...
1
vote
0answers
19 views

Can't forward port via ssh

I want to perform ssh -L 5004:127.0.0.1:5004 ilyab@188.170.0.245 -p 3228 -v But I have an error connect to host 188.170.0.245 port 3228: No route to host OpenSSH_7.2p2 Ubuntu-4ubuntu2.10, OpenSSL 1.0....
1
vote
1answer
49 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. ...
1
vote
0answers
23 views

Ubuntu SSH forwarding access not working from to server 3 from server 1 (server 1--> server 2 --> server 3)

i have a requirement to have the SSH connectivity of the remote server in the azure network to our on prem network. Since the direct connectivity between both the networks are not available, i am ...
0
votes
0answers
50 views

Turn Monitor On/Off via SSH

i have a PIR on another raspberry pi. This one should turn the monitor on this ubuntu via SSH on and off. My System: Raspberry Pi 4 with Ubuntu 2104 I read about this and found many answers about ...
0
votes
1answer
146 views

OpenSSH showing vulnerabilities. Could it be false-positive?

I am running Ubuntu 20.04.2 LTS and am using the system as a web server. I update the system on a regular basis. I am trying to make sure my system is as secure as possible and have started to test ...
0
votes
0answers
92 views

The right way to protect from SSH issues

I use Ovh to host a VPS in which my services run. I choose the latest, Ubuntu 20.04 release for my VPS OS image, ran an apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y &...
0
votes
2answers
102 views

Enable SSH in WSL system

I am trying to enable SSH in my Ubuntu running in WSL2 system: sudo systemctl status ssh I get this error: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to ...
0
votes
0answers
19 views

Problem with ssh on ubuntu server distribution

So, I set up a VM using the ubuntu server distribution and for some reason cannot log into it via SFTP using filezilla. I just get ssh_init: Host does not exist as an error when trying to connect via ...
0
votes
0answers
25 views

Allow copying files with scp without allowing users to log in and launch a shell

Is there a way to allow a user to access the server with scp, but without having premission to log in and launch a shell? The thing is that I want the better connection type with key files for all ...
0
votes
0answers
22 views

VirtualBox “sudo apt install openssh-server” ERROR after doing “sudo killall apt apt-get” it returns “apt: no process found apt-get: no process found”

I'm a bit new here to AskUbuntu (this is my first post), but there is an extremely annoying problem when I try: user@machine:/etc$ sudo apt install openssh-server E: Could not get lock /var/lib/dpkg/...
0
votes
0answers
19 views

Need help with transferring data from linux to windows

Hello Linux Master race! I am a first time poster, but a long time user of Linux, you may be wondering why I am transferring from Linux to Windows as if I am leaving Linux or something, but no that is ...
0
votes
1answer
29 views

can't login to a qemu ubuntu server machine using ssh

I was following this tutorial : https://gist.github.com/george-hawkins/16ee37063213f348a17717a7007d2c79 except the machine is arm64. I created cloud.txt (observing the indentation carefully). The ...
0
votes
1answer
19 views

SSH via jump server and then use a command

I have a jump server that I need as a bridge when running commands on another server. I set up the jump server in my ssh config to be hopping and on the jump server, I set the final destination as lb3....
0
votes
0answers
24 views

Can “org.freedesktop.DBus.Error.Timeout” cause ssh connection to stuck at “debug1: Local version string SSH-2.0-OpenSSH_8.1”?

Whenever a ssh session request is stuck at debug1: Local version string SSH-2.0-OpenSSH_8.1, it means client have sent the local version string and awaiting version string from server. I looked at the ...
0
votes
0answers
32 views

SSH connection works but does not change which machine I control

First of all, sorry if my technical terminologies are off, I hope I can make myself understood anyway. I have this weird problem with SSH. I have 3 computers which connect to each other, the server ...
2
votes
0answers
36 views

chrony; clock skew too great

I have a fully operational chrony on my Ubuntu: v@v-VirtualBox:~$ timedatectl Local time: Mon 2021-05-17 17:02:03 EEST Universal time: Mon 2021-05-17 14:02:03 UTC ...
0
votes
1answer
27 views

ssh with identity_file failed on ubuntu 20.04

First I generate RSA key on the target host on ubuntu 20.04: ssh-keygen -t rsa Then I scp ~/.ssh/id_rsa to source host. Final I wanna to ssh from source host by id_rsa: ssh -i id_rsa root@target_host ...

1
2 3 4 5
108