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
4 votes
0 answers
588 views

Nautilus "Connect to Server" is much slower than the terminal's SSH

In both machines I usually operate on, one at home and another at work, Nautilus seens to work pretty fast when it comes to my local files. However, as soon as I connect it using the SSH option on ...
Evandro Teixeira's user avatar
2 votes
1 answer
2k views

keyboard is not working after 1 or 2 minutes when connecting with ssh

when I connect using /usr/bin/ssh to VPS machines (centos 7), after some little time my keyboard is not working on terminal, when not using ssh I can use terminal normally. My ubuntu version : NAME="...
Sahin 's user avatar
  • 23
0 votes
1 answer
189 views

SSH Ubuntu 19.10 weird ssh behaviour rejecting key after first login

I have a respberry pi 4 with Ubuntu 19.10 x64 installed. I have ssh setup the same way I have done with every other Ubuntu server I have (No password login). My keys are appended correctly to ...
Steve Fitzsimons's user avatar
0 votes
0 answers
179 views

A password, but not the right one?

This is a bit strange. I have two computer. One where the OS is Ubuntu and the other where it is a Windows 10 VM. From the first computer, I SSH my VM and I got this jeremie@jeremie-ThinkStation-D30:~...
J.Doe's user avatar
  • 53
0 votes
1 answer
1k views

SSH my Windows 10 VM

I have two computers. The OS of the first one is Ubuntu and I am using a Windows VM (VirtualBox) on the second computer. I use a Bridge Adapter with the VM. Right now I am able to ping the VM, but if ...
J.Doe's user avatar
  • 53
5 votes
1 answer
1k views

Graphical file manager with support for SSH'ing into duo 2FA protected server?

I used to be able to use nautilus and go to the location bar and "ssh://[email protected]" into a remote server and do things like drag and drop files. However, that remote server added two-factor ...
orangenarwhals's user avatar
0 votes
0 answers
949 views

Start MC server on boot into detached screen

So what I'm trying is to start a minecraft server on boot into a detached screen. I would like to be able to reconnect to that screen with ssh to monitor the server. This is what i tried with the "rc....
Bart van Dijk's user avatar
0 votes
0 answers
269 views

SSH into Virtual Machine from outside of NAT router

I have a virtual machine on my host which I am trying to SSH from outside a NAT router. Both the host and the virtual machine are using the wifi interface and so have the same IP assigned by the home ...
Brian Fitzsimmons's user avatar
0 votes
1 answer
5k views

Why in SSH appears the -T parameter in the Ubuntu documentation but not in the terminal/console?

Having the following OS: Linux Ubuntu (18.04 LTS) when I execute the ssh command I got the following: > ssh usage: ssh [some characters shown] [-B bind_interface] [-b bind_address] [-...
Manuel Jordan's user avatar
0 votes
1 answer
138 views

Can't set up Ubuntu Desktop on VPS

I just had a Virtual Private Server setup with Ubuntu 19.10. I can login with SSH, but I can't successfully install Ubuntu Desktop. Here's what I did so far: Create a new sudo user: useradd NewUser ...
mrgou's user avatar
  • 195
11 votes
1 answer
19k views

Copying SSH Key From Root To Another User On Same Machine

I am trying to create a server setup script. On initialization of the server, I add my ssh key which then gives me access to the root user via ssh. I now have created another user and gave them sudo ...
Doobie's user avatar
  • 113
0 votes
2 answers
1k views

iptables rules for lxd container via ssh

Good day. I use ubuntu 18 and want connect to my container via ssh. This is my container cont | RUNNING | 10.78.195.190 (eth0) | fd42:4be2:f986:212a:216:3eff:fee4:582 (eth0) | PERSISTENT | 0 ...
Юрий Кот's user avatar
5 votes
1 answer
6k views

X11 forwarding through WSL connection

I have the following setup: My work computer is running Ubuntu 18.04, with the following /etc/ssh/sshd_config: # $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ # This is the sshd ...
Mate de Vita's user avatar
1 vote
0 answers
3k views

ssh: connect to host port 22: Connection refused

I am trying to ssh into a raspberry pi 3 from an Ubuntu 18.04 machine but kept getting this error: ssh: connect to host port 22: Connection refused The raspberry pi uses an Ethernet connection for ...
mert's user avatar
  • 11
2 votes
1 answer
2k views

How to echo or paste commands into a SSH terminal with a shell script

I've been having an issue lately trying to figure out how to get my shell script to paste a command into a ssh terminal after automatically logging into an ssh terminal. I am trying to setup a cron ...
GeorJon4's user avatar
1 vote
0 answers
83 views

Server Ubuntu strange connection behaviour - static IP

I've an Ubuntu server 18.04 with a static IP address, and the follow is the /etc/netplan/01-netcfg.yaml file: network: version: 2 renderer: networkd ethernets: enp3s0: dhcp4: no ...
Hike's user avatar
  • 11
1 vote
0 answers
409 views

Cannot unset proxy for git

Due to certain..world events, I have to work remotely outside our company proxy. I have unset the proxy settings eveywhere and everything works fine except Git. When I try to pull or push to our AWS ...
xghjdfugjlio's user avatar
1 vote
1 answer
5k views

Nginx as SSH gateway?

I have a server which serves some other systems via LXD, using Nginx as reverse proxy for accessing them on HTTP. Now I want to give shell access to one of them to a friend. In fact, I want to be ...
Danial Behzadi's user avatar
1 vote
0 answers
865 views

Using EXIT command in an SSH bash script loop

I have created a script to SSH into 3 x remote virtual machines and SCP some information back to the local machine. Is there a way to insert the EXIT command into my script to automatically exit the ...
cyber_tinker3356's user avatar
0 votes
1 answer
5k views

Ubuntu 18.04 Hyper-V guest can access the internet but can't be accessed with ssh from host

I set up an Ubuntu 18.04 vm with Hyper-V on a Windows 10 machine. The vm has internet access via the default virtual network switch, but I'm not able to ping it or ssh from the host using its eth0 ...
CSeal's user avatar
  • 71
1 vote
1 answer
5k views

No SSH access after accidentally denied ssh in ufw/iptables on Snappy Ubuntu Core

I´m running Snappy Ubuntu Core 18.04 on Intel Nuc, located on other location then where I live permanently. Now I have accidentally denied SSH in iptables with use of ufw and SSH connection is not ...
Ismar Slomic's user avatar
0 votes
0 answers
203 views

Chrome window missing menu bar, tabs, etc when launched via SSH

When I SSH to a remote box $ ssh -X remotebox and attempt to start Chrome, $ google-chrome a local Chrome window opens, but it is just the window and the title bar. No tabs, menu bar, bookmarks, ...
Brian Birmingham's user avatar
1 vote
0 answers
227 views

Fail2ban continuous log flood, what's happening?

A couple of days ago I noticed my server got very sluggish. When I investigated I noticed fail2ban was going crazy, the fail2ban-server process taking up 50% of CPU, and the fail2ban log file is ...
Pantalaimon's user avatar
2 votes
1 answer
2k views

Arrow keys don't work in SSH [duplicate]

I'm using SSH host with Ubuntu 16.04. When I use it i can't use in command line arrow keys for moving cursor (^[[D ^[[C) and using previously used commands (^[[A ^[[B), but when I use nano i can do it....
tuxlabore's user avatar
5 votes
1 answer
7k views

Permission denied for ssh -R (tunnel)

I am trying to set up a tunnel between port 22 on my work computer (Ubuntu 19.10) to port 44455 on my computer at home (Ubuntu 18.04), so that I can ssh to my work computer from home. (Unfortunately I ...
bryanl's user avatar
  • 51
0 votes
1 answer
2k views

How to run GUI application without monitor

I have an ubuntu server with Nvidia GTX 660. I initially used ubuntu-server but later installed LXQT (not sure if it is required). I want to start java application with ssh without connecting any ...
lipazo's user avatar
  • 11
1 vote
0 answers
129 views

Ubuntu - Moduli file upgrade story

SSH uses /etc/ssh/moduli file for DH exchange key alogithm. Only root has write permissions to modify the /etc/ssh/moduli file. Assume that we modify the /etc/ssh/moduli file for some reason (Ex - ...
ABCDEFG's user avatar
  • 11
0 votes
1 answer
173 views

crontab + SSH client, disk space leaking problem, how to solve it?

I'm using Ubuntu 18.04 LTS, and I'm doing something weird on my system. In crontab -e, I have a line like this: @reboot sleep 11 && sshpass -p '123456' ssh -D *:7070 socksclient@localhost ...
Jimm Chen's user avatar
  • 323
0 votes
2 answers
10k views

Remote desktop can't connect to the remote computer for one of these reasons

I am newbie to Google Cloud. I tried to access my Linux VM from RDP, but it is giving me the following error: My firewall rules are as follows:
Maqsud Inamdar's user avatar
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
1 vote
0 answers
232 views

.bashrc seems not executed when logged in from a relay machine

I am using Xubuntu 18.04 in Virtualbox. I have 4 identically installed Xubuntu 18.04 virtual machines each doing different jobs. I have account A on machine One and account B on machine Two. In both ...
lisprogtor's user avatar
1 vote
0 answers
238 views

grsync does not reproduce quotation marks in rsync command, so never asks for password

When running grsync to transfer local files to a remote server, the program simply sits there doing nothing. Unfortunately it never asks me for the remote system password. OS is Ubuntu 18.04.4 LTS. ...
dw861's user avatar
  • 41
0 votes
2 answers
875 views

Problem while running mysql

The term and the code of mine is here below: root@fair-VirtualBox:/home/fair# sudo systemctl status mysql ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service;...
Suman's user avatar
  • 11
6 votes
1 answer
18k views

bash: docker: command not found

I'm accessing Ubuntu 19.10 running as a virtual machine. In the installation process I installed Docker (as a snap). Everything is fine when I log in using SSH, but this will fail: $ ssh user@host '...
chrwahl's user avatar
  • 243
1 vote
0 answers
102 views

How to install ubuntu server without display

I have an E3 server. But the display port on it doesn't work. I have tried to plug the hard drive to another computer to install, but it won't boot. When I try to install ubuntu on it through netboot. ...
Liups233's user avatar
1 vote
0 answers
204 views

Unable to connect to Ubuntu server via VNC due to previous inappropriate disconnect

Normally I can connect to a ubuntu server via vnc viewer. But sometimes due to inappropriate disconnect of the session because of the internet change, or just unplug the internet cable, then the ...
Albert G Lieu's user avatar
1 vote
1 answer
876 views

SSH - Permission denied (publickey) with Password Authentication

I'm not able to log into my remote machine and get the Permission denied (publickey). even through I manually specify the options to use password authentication ssh -o PubkeyAuthentication=no -o ...
user14492's user avatar
  • 111
1 vote
1 answer
579 views

ssh to amazon aws instance from virtual machine ubuntu 19.10

I have aws instance key .pem file I saved that in a folder "home/debian/cs605\ data\ management/assignment6/mumbai\ instance\ keys" the key name is mumbai-instance-1.pem I wrote a small bash ...
political science's user avatar
0 votes
0 answers
288 views

Making ssh connection permanent

On the server [email protected], I've an application running at http://localhost:8888 And usually on the client, I'll have to do this to connect to the server application: ssh -N -f -L 8888:...
alvas's user avatar
  • 2,917
2 votes
1 answer
461 views

Can't login with Nautilus SFTP

I can't login with Nautilus SFTP to a server on my local network. I only get the message: (Norwegian) "Oops! Något gick fel.Har inte nödvändiga rättigheter för att komma åt den begärda platsen." ...
user37342's user avatar
  • 141
0 votes
0 answers
398 views

ssh to windows from ubuntu machine with public-keys

i am trying to connect using ssh from ubuntu machine to windows server, after installing openssh server on windows server, and testing if i can connect from ubuntu to windows server ( it worked ), now ...
Zeid ALSeryani's user avatar
1 vote
1 answer
5k views

error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key

Ubuntu 18.04 In system journal I see these error messages appear every 1 to 5 minutes. error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key error: Could not load host key: /etc/ssh/...
melaxon's user avatar
  • 111
1 vote
3 answers
5k views

Ubuntu Server 18.04 and OpenSSH 8.2 - when?

I need support for Yubikey's for a project. Sysops need to log on to an Ubuntu Server from remote positions using them. I see that openssh 8.2 has native support for it. Will openssh 8.2 be available ...
praabye's user avatar
  • 11
1 vote
1 answer
10k views

Load key "privkey.ppk" invalid format

What have I done: I'm trying to connect to my remote server with private key with ssh -i privkey.ppk root@ip But it's returning an error. Error message: Load key "privkey.ppk": invalid format root@...
AATHITH RAJENDRAN's user avatar
2 votes
2 answers
4k views

How to connect Ansible to AWS-EC2 via ssh

I want to connect ansible to EC2 via ssh. I created a key pair on my local machine(ubuntu) and copied it to my EC2 instances using ssh-copy-id. The copy was successful, but I get the error below when ...
user1048281's user avatar
0 votes
0 answers
4k views

how to fix ssh-copy-id connection timed out error?

I logged in Following the steps to automate ssh login ends up with disconnecting from server. # ssh-keygen # ssh-copy-id userid@hostname -p 2242 # /usr/bin/ssh-copy-id: INFO: Source of key(s) to be ...
EnthusiastiC's user avatar
1 vote
0 answers
20 views

Can only connect to my apache2/mysql/ssh server after I pinged the device im trying to connect from with the server itself

I have Ubuntu running on an old laptop of mine, and I use it for my web development hobby. it's running an apache2 server, a mysql server and an ssh server. as the title says I can only connect to it ...
salvador_50's user avatar
1 vote
2 answers
856 views

Random SSH IP from China

My nas server running ubuntu-server 19 has the 22 port open for remote access and I was just casually looking at netstat when I noticed a strange IP. Turns out it's from china and when I looked it up, ...
mima47's user avatar
  • 13
0 votes
0 answers
68 views

Cant connect to SSH server (Ubuntu) from home wifi

My SSH server set up at my workspace usually from a mobile SSH application with cellural data i can reach ssh anywhere,but when i'm home and i want to do my thing it just wont connecting. The server ...
Larry Petshow's user avatar
1 vote
0 answers
216 views

How to keep sshpass process in the background?

sshpass -p '1234567*' ssh -L 1080:192.168.0.1:2222 [email protected] -p 4422 -f -C -N The above code works on macOS (creating a 1080 tunnel to 192.168.0.1:2222 via gateway.com:4422 with username ...
Aero Windwalker's user avatar

1
31 32
33
34 35
125