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").

1,943 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15
votes
2answers
6k views

SSH into Ubuntu over Serial port

I have connected to my Ubuntu box using its serial port on windows(using putty connection is working fine.) According to the question https://serverfault.com/questions/892892/how-to-use-ssh-over-...
9
votes
0answers
3k views

Vnc using Ubuntu 17.10 with Wayland

I was wondering if anyone could give an update on the state of vnc in Ubuntu 17.10 with Wayland, and if it is possible, some instructions on how to set it up. The vnc documentation on the Ubuntu ...
9
votes
1answer
1k views

How can I repair gnome-keyring to unlock my SSH keys automatically after login?

It looks like some recent package updates broke some functionality of gnome-keyring. When using SSH from the terminal it asks me for the password of my SSH private key. Previously the key was unlocked ...
7
votes
0answers
2k views

How to use normal ssh-agent on 18.04?

I am using an 18.04 installation that has been upgraded from 17.10. When it was on 17.10, I pulled the GNOME SSH/GPG agent out, in favour of using the standard, command-line SSH agent. I wrote up the ...
7
votes
2answers
3k views

Why isn't my keyring in Ubuntu working?

I have encrypted my id_rsa with a password. I think Ubuntu has a keyring system which prevents me from inputting password every time I have to use id_rsa, like git push. Sometimes I don't need to type ...
6
votes
1answer
7k views

Prevent SFTP from disconnecting

I am using the latest version of FileZilla (3.9.0.6) to connect to a fully up-to-date Ubuntu Server 14.10 with OpenSSH. When I SSH into the server using PuTTY, the connection never times out. I stay ...
5
votes
0answers
5k views

Ubuntu 20.04 - issue with VNC

I have been using Ubuntu on a headless server (with Ubuntu desktop) and a vnc with Gnome since 16.04 LTS. My setup is very similar to everyone else who publishes a How To. I plug in a monitor/...
5
votes
0answers
538 views

How to prevent terminal title changing after ssh

I use one of the many solutions to set the terminal title: Function in .bashrc: function set-title() { if [[ -z "$ORIG" ]]; then ORIG=$PS1 fi TITLE="\[\e]2;$*\a\]" PS1=${ORIG}${TITLE} } ...
5
votes
3answers
22k views

RSA keys not authenticating

Just trying to get a basic setup of openSSH going on an Ubuntu box to work remotely. Main issue: RSA keys fail auth. ssh DOES work using the password for auth, but I would much rather limit it to only ...
4
votes
1answer
5k views

SSH freezes at pledge: network

I setup passwordless ssh login. I could connect through ssh and also used sftp. suddenly I could not connect any more and ssh freezed. Server: Ubuntu 16.04 Client: Ubuntu 18.04 ssh --vvv user@host ...
4
votes
1answer
14k views

“ssh_exchange_identification: read: Connection reset by peer” intermittently this error is occurring for Ubuntu 14.04.5

While trying to access my Ubuntu VM, I am facing intermittent ssh connectivity issue. Please note this is an intermittent issue.I have checked /etc/hosts , hosts.allow , hosts.deny files as per ...
4
votes
0answers
1k views

How to use same ssh key after machine format?

I have added my ssh key to many servers as authorized key, But because of some reason, I had formatted my laptop. Now is there any way to assign my previous ssh key to my laptop so that I can login ...
4
votes
0answers
4k views

When running any GUI command over SSH: cannot open display: localhost:11.0

Host: Kubuntu Client: Windows 10 with Linux subsystem Goal: I want to be able to ssh into my host machine and export the display for GUIs, such as kwrite or gedit. Problem: I'm trying to SSH from ...
4
votes
0answers
1k views

Can I unlock a brand new user to SSH in without setting password?

I'm following these steps when setting up the user: $ sudo useradd periscope -m -s /bin/false $ sudo su -s /bin/bash periscope $ mkdir ~/.ssh $ # public key gets manually input here $ cat - >> ~...
4
votes
0answers
934 views

Ubuntu server, turn off screen via ssh

I got a laptop running Ubuntu Server 16.04 without a GUI. Is there a way to turn off the screen via ssh? I've already tried: (as root and as simple user with sudo) sudo vbetool dpms off > no ...
4
votes
0answers
527 views

Ubuntu 16.04 slow ssh character feedback

I am seeing veeeeeerry slow feedback on remote ssh terminals to a new install of Ubuntu 16.04. E.g., after typing a character it may take 20-30 seconds before it is displayed in the terminal. ...
4
votes
1answer
3k views

-bash: cd: HOME not set

Today when I logged into my server via SSH as I have for the past 6 months, I now receive this -bash: cd: HOME not set error message anytime I run a command that makes reference to the $HOME ...
4
votes
0answers
724 views

Service Command - Why service --status-all and service SERVICENAME status returning different results?

I am connecting to my local VMs via ssh private key. My understanding is the service SERVICENAME status returns the detailed status of the service and the output mentions that the service is 'Active' ...
4
votes
0answers
861 views

Want to run X with startx on :0.0 from ssh (*not* remote X forwarding)

Quick Summary: I want to start an X session (w/ lightweight window manager) connected to the attached display (:0.0) of an Ubuntu machine, by logging into that machine from SSH. Currently I cannot do ...
4
votes
0answers
155 views

Rsync slows up SSH of every user connecting to the server

I manage a 36 core Ubuntu server at work, which is used only by a handful of people. Every time when an user runs a rsync or scp job, all other users on the server experience a lot of typing lag ...
4
votes
0answers
4k views

Error when running “vino-preferences” on Ubuntu 15.10

I'm trying to configure and enable remote login on an Ubuntu 15.10 machine by connecting to it using ssh from Ubuntu 14 machine. On Ubuntu 15.10 machine, I've installed vino using the following ...
4
votes
1answer
1k views

midnight commander freezes on remote file copy over fish/ssh protocol

I'm using midnight commander (mc), version 4.8.1 shipped with Ubuntu. when I try to copy a file from remote ssh server over the fish/ssh protocol, mc freezes at 0%, and I had to terminate it. I tried ...
4
votes
1answer
1k views

unlock kwallet at login

before plasma 5 I had my kwallet unlocked at login and it worked well (same password for kwallet as for my session). Now, with plasma 5, it does not work anymore, I think I'm not far from working ...
4
votes
1answer
1k views

Multiple sftp users and access to a /var/www subdirectory

I have some users on my Ubuntu server with vsftpd installed. The server is used as web server and has a shared sftp directory that is accessed by public clients (by giving them the user and password). ...
4
votes
1answer
881 views

udev/dpkg error

I'm getting this strange output every time I try to execute a command through SSH on my VPS (Ubuntu Server 15.04) which doesn not allow me to install anything. Any suggestions ? Job for systemd-udevd....
4
votes
0answers
6k views

Black screen when accessing Ubuntu remote host via VNC and vino-server

I have a headless server and I am trying to setup a VNC connection in order to access it with a GUI. Now I have only root access via ssh. I have followed most of the instructions given here Enable ...
4
votes
1answer
6k views

Ubuntu SSH X11 Forwarded Client Very Slow

Running SSH X forwarded session from my Ubuntu 12LTS client to a SLES server results in very slow(seconds per mouse click) GUI app(on the server) performance. Using a windows client from the same LAN ...
4
votes
0answers
1k views

Very slow speed while mounting via SSHFS

My host is ubuntu 12.04. My guest is vanilla 3.0.33 kernel with custom rootfs. I have encountered the subj problem, while mounting host folder on the guest machine via sshfs. sshfs alexhoppus@10.0.2....
4
votes
1answer
447 views

How to close sftp connections made by dolphin?

after using dolphin to connect to a ssh site, for example: sftp://myserver.com and using my user and pass... how can I close that connection so I can log in with another user? It does always auto ...
4
votes
0answers
9k views

avahi daemon constantly needs restarting

I have Ubuntu 11 running on a Thinkpad W520. Things work great, but not avahi-daemon. It seems that my laptop becomes invisible (ssh user@hostname.local can't find the laptop) to other computers on ...
3
votes
3answers
440 views

How to set umask to u=rwx,g=rwx,o=rx for all ways of logging in without root privileges on 20.04.2?

I am working on an Ubuntu 20.04.2 box that I do not have root privileges on. I would like to set my umask to u=rwx,g=rx,o=rx (aka 022) no matter how I log in. I want to set it for GNOME sessions ...
3
votes
0answers
184 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 ...
3
votes
1answer
392 views

Replacing ssh-agent for gpg-agent

I was trying to use gpg-agent as a "drop-in replacement" of ssh-agent. My understanding was that I needed to: add enable-ssh-support to ~/.gnupg/gpg-agent.conf comment use-ssh-agent from /etc/X11/...
3
votes
0answers
742 views

gnome-control-center sharing over SSH: core dumped

I am logged onto a remote Ubuntu computer over SSH (using the -Y option. I am trying to enable screen sharing remotely, so I typed the command: $ gnome-control-center sharing And I got this error ...
3
votes
0answers
1k views

Ubuntu 18.04 - Unable to unlock screen or use chrome remote desktop on boot

I'm trying to set up chrome remote on my Linux machine running ubuntu server 18 and gnome/lightdm on top. I can't figure out how to get chrome remote to work on boot with a lock screen, but it works ...
3
votes
2answers
184 views

Remap caps-lock to escape: Snap Server

I am on Ubuntu Snap server with no GUI and would like to remap my caps-lock to escape for my terminal sessions. I have tried modifying the /etc/defaults/keyboard to include caps:escape but there’s no ...
3
votes
0answers
760 views

I can ssh to the server but sshfs gives me 'no matching cipher found: client arcfour server aes128-ctr,aes192-ctr…'

I can ssh to the server, but sshfs fails with the read: Connection reset by peer error. I have checked all the cases pointed out in this AskUbuntu question, the user is in the fuse group, ...
3
votes
0answers
2k views

SSH connection not working when connecting from specific IP

This issue has actually been occurring for me for awhile now, however, it didn't "bother" me enough, but is now becoming somewhat of a frustration. I upgraded to 18.04 in May, and since the upgrade I'...
3
votes
0answers
50 views

Samba share on external drive delays SSH logins

I have a Ubuntu Server 18.04 as well as a NAS on my network. The drives on the NAS are configured to stop spinning after a bit of idle time; they take a noticeable time to start up when needed. That ...
3
votes
0answers
860 views

Problems with X-forwarding and nvidia driver for ssh -X

I have just digged out a T430 Lenovo Notepad with a dockingstation. After installing the nvidia-384 driver through Settings > Software ... > Additional Drivers, I got it running on my 2 screen setup *...
3
votes
1answer
3k views

MongoDB ServerSelectionTimeoutError: No replica set members available for replica set name “abc”

I'm an experienced programmer, but a Python, Ubuntu, and Linux newbie. I apologize, as well, if this question would be better in a different forum. I am working on a project in Python using PyCharm,...
3
votes
0answers
3k views

ssh bad configuration option when ssh the bastion server

here is my config file Host * ForwardAgent yes Host com-bastion         Hostname com-bastion         User hanumanth.rao         IdentityFile ~/.ssh/id_rsa.pub         LocalForward 127.0.0.1:11445 ...
3
votes
1answer
10k views

gtk-WARNING **: cannot open display while running command-line-only script

I'm trying to run several compute intensive python scripts on a server (Ubuntu 14.04.5 LTS) via ssh -Y and tmux. This works fine as long as I don't close the ssh connection. If I do close the ...
3
votes
1answer
1k views

SSH authentication via GnuPG: The agent has no identities

I used the following instructions to setup a GnuPG authentication key. However, I am having troubles getting it recognized by my SSH agent upon startup. I put the following lines in my .profile: ...
3
votes
0answers
700 views

Why do we need re-install tensorflow for each user in server?

I have installed Ubuntu Desktop 16.04 on a supercomputer and it uses for multiple-user using. Let's the name as the suppercomputer is a serverubuntu. In the serverubuntu, I have install tensorflow-gpu ...
3
votes
0answers
196 views

SSH local machines without .local

At the office network I'm able to connect to the local raspberry pi doing this : ssh pi@raspberry At home I'm not able to connect to my local raspberry unless I add .local like this : ssh pi@...
3
votes
1answer
218 views

Terminal shows strange characters where is computer name

I have ssh'ed to other computer and terminal showing strange character where is computer name and time. Bash version 4.3.48(1)-release. What should I do to fix that issue?
3
votes
1answer
7k views

How to fix “ssh-agent refused operation” on Ubuntu 17.10?

I installed Ubuntu 17.10 on a machine and created an ssh key. However I am not able to use the gnome keyring to unlock this ssh key, I always get the following error message when trying to connect via ...
3
votes
0answers
222 views

Openvpn client block the connection

I tried to get my rootserver use an vps. I have vps-unlimited and start it with: sudo openvpn --client --config /etc/openvpn/bla@bla.DECB1.ovpn After I used this command, I can not connect to the ...
3
votes
0answers
2k views

Cannot SSH locally from Mac to Ubuntu 16.04 Server (running as Hyper-v guest on Server 2012R2)

I've looked just about everywhere for a solution but I have yet to find one. Here's my problem: I try and connect to my Ubuntu Server via SSH from my Macbook Pro within my LAN with: ssh nextcloud@192....

1
2 3 4 5
39