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
0 answers
285 views

Connection time out eth0 and ufw

I have 4 VPS servers which I ssh into. One of them suddenly stopped and am not able to login. This is surely a firewall issue as I have done some ufw changes in it. Tried to restart eth0, but it ...
priyam mohapatra's user avatar
0 votes
0 answers
48 views

When logging in via SSH, network drops [duplicate]

I am noticing this odd behavior in Ubuntu 16.04 desktop. I have open-ssh installed and working. But in one odd scenario, I noticed a few things break down. Here is a breakdown: When I am already ...
E.S.'s user avatar
  • 133
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
1 vote
0 answers
260 views

ssh can't connet to the puplic ip and can't connet to ssh acount

Can anyone help me? When I try with my Internal IP but they don't work, When I try with my public IP, it gives me: [email protected].*******'s password: sshd listensocks[14] Connection to 46.153.27.142 ...
o.bahy's user avatar
  • 11
1 vote
2 answers
3k views

How to log all the output displayed at screen?

running Ubuntu 18.04 on a non headles server dedicated only to cryptocurrency mining. The server, after some moments of mining, beeps and reboots. While it does that, there is some kind of error ...
adriiPortillo's user avatar
0 votes
0 answers
568 views

ubuntu slow on ssh/sftp connecton

I recently purchased vps server with ubuntu. when i test it worked file. but now i found a problem.. after i worked about 1hours it gets slows down while connecting/authentication to server. ...
Zakir_SZH's user avatar
  • 101
0 votes
2 answers
5k views

How can a reverse-SSH connection be kept accessible for a long time?

I have a server, and I have a desktop that is behind an awkward network. In order to access my desktop remotely, I have it maintain a reverse SSH connection to my server, and then I can SSH to my ...
BlandCorporation's user avatar
1 vote
0 answers
2k views

Connection to <IP-ADDRESS> closed

When I try and ssh into my Digital Ocean droplet1 I see this: Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-127-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://...
LondonRob's user avatar
  • 355
0 votes
1 answer
293 views

Restricted user caged in a directory

We have the need to create a user that can only stay in his/her directory... no very dificult... we assined the user the /bin/rbash shell. Any try to move to another directory but his home, pointless. ...
Luis Angel's user avatar
1 vote
1 answer
2k views

How to config ~/.ssh/config file to remotely access server inside domain

I maintain a server on weekly basis that is located inside a client company's network while connected via checkpoint network extender. I'm able o access with no issues using ssh [email protected]@...
Lucas Vasconcellos Czepaniki's user avatar
1 vote
1 answer
2k views

Synologie NAS - Using Symbolic Link with SFTP

In advance, sorry for the spelling errors. English isn't my first language, I will try to be as clear as possible. I am trying to interconnect folder between them inside my NAS. Example : I have a ...
Vincent Aleonard's user avatar
0 votes
2 answers
1k views

How to connect to server with dynamic IP address over VPN

I have a server set up with a static IP address over a wired interface (eno1). I can ssh into the server remotely through the static IP, but the connection is poor, possibly due to incompatibility ...
Hank Richards's user avatar
0 votes
2 answers
7k views

Reboot through SSH not back online [duplicate]

I am using Ubuntu 16 desktop, but I do plan to SSH into my machine just as much, if not more, than I use it as a desktop. I am noticing that when I issue an sudo reboot command while I am SSH'd in, ...
E.S.'s user avatar
  • 133
4 votes
1 answer
2k views

How to connect in ssh to a server with ipv6

I am trying to connect through ssh to my VM server, and when typing ifconfig, i only find ipv6 connections. I therefore don't know how to connect to my server... Help ? can i somehow still use this ?...
Pastudent's user avatar
  • 173
2 votes
1 answer
2k views

expect interferes with character encoding during ssh

In my company we use expect to automate tasks, when ssh'ing into other systems. All our legacy systems run ISO-8859-1 character encoding, while our desktop systems run UTF-8 encoding. Which of course ...
Jens Bang's user avatar
4 votes
4 answers
11k views

How to connect to Internet through a remote server via SSH connection

I have a problem in accessing Internet through an ssh-accessible server Situation EDIT: FYI, my OS is Ubuntu 16.04, and IIRC, same as the server. Ok, here's the deal. My company provide me a PC ...
enamoria's user avatar
  • 140
0 votes
1 answer
124 views

ubuntu support intermittent connectivity ssh session

Recently I moved and with the new wifi router (tp-link) I noticed I get kicked out from ssh sessions, the shell gets stuck and I cant type anything and I have to close it. I am not sure how to test ...
lapinkoira's user avatar
-1 votes
1 answer
34 views

Connect two different ubuntus running on different machines and different networks

So, my aunt bought a pc running Ubuntu to my grandmother (just because it was cheaper), but my grandmother doesn't even know what a command line is. I wanted to know if there's a way I could run sudo ...
Tatiane Stivelman's user avatar
2 votes
2 answers
6k views

Git asking for private key?

I'm on Ubuntu and I'm learning how to use Git collaboratively. I have created a pair of public/private keys on my local Ubuntu desktop with the following command: ssh-keygen -b 2048 I then accessed ...
mf94's user avatar
  • 135
1 vote
1 answer
473 views

Can not SSH into machine from local network when gateway route is added to netplan config

Ok, so to SSH into this machine from the local network, I have had to set a route with the default gateway of the IP of the machine, I am sure this is wrong, my current config looks like this network:...
Jeffrey L. Roberts's user avatar
1 vote
0 answers
1k views

ssh port forwarding and ufw

I am running a computer at a very remote site (6 hours away), and I would like to control it remotely. For security, I would like to block everything except port 22 from the outside world. I need to ...
tuco's user avatar
  • 11
0 votes
1 answer
548 views

Ubuntu 18.04 Broke my server

When I try to ssh into my ubuntu server, I have this shell input and output. sjrsimac@SethDanicaTV:~$ ssh -vvv sjrsimac@SethServer OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading ...
Seth Reuter's user avatar
6 votes
0 answers
6k views

ssh works, scp hangs forever

I would like to copy files from my laptop to another machine - a headless TX2 -- over my home wifi network. Both my laptop and the TX2 are running Ubuntu 16.04 and both have the latest version of ...
brikeats's user avatar
1 vote
1 answer
2k views

Problem connecting to Pi through SSH with Ethernet cable in Ubuntu

I want to connect through SSH my Raspberry Pi 3 B+ to my laptop running Ubuntu 18.04 just with an Ethernet cable without any internet connection. 1) Wi-Fi on for Pi and laptop [ok] 2) Wi-Fi off for ...
Mauricio Fernández's user avatar
0 votes
0 answers
95 views

Ubuntu 14.04: PCI Compliance and openSSH

I'm new to ubuntu and openssh. Background: I am currently on running Ubuntu 14.04.4 LTS. There is oracle virtualbox installed as well. Virtual box run on Mandriva Drake. I had to run a PCI ...
ayewassup's user avatar
6 votes
2 answers
8k views

Using different ssh config options based on port

I have a situation where I have to use different login credentials on the same IP address based on the port the I use. So and example on the command line would look like this: ssh [email protected]:...
Chris's user avatar
  • 241
3 votes
0 answers
79 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 ...
Jos's user avatar
  • 29.1k
2 votes
0 answers
1k views

systemctl asking for password

I'm trying to get the machine to go to sleep with systemctl suspend, however every time I try to do this over an SSH session it asks for the password twice, one to set a wall message and another to ...
Mario Gomez's user avatar
1 vote
1 answer
6k views

Ubuntu ssh: connect to host localhost port 22: Connection refused

I am trying to install Hadoop3.0 on my laptop which is Windows 10. I installed ubuntu 16.0.4 on the same laptop. Hadoop installation is complete but I am not able to start the daemon as it is throwing ...
Sandeep Krishna's user avatar
0 votes
0 answers
492 views

how to run a graphical program via CLI?

I have a program (k40-whisperer.py) which is graphical using tk(). I added CLI functionality, and it works when I am running it via a computer with a display. I want to run it via an exec() function,...
j0h's user avatar
  • 14.8k
0 votes
1 answer
2k views

virt-sysprep: error: libguestfs error: No such file or directory

I'm currently running this command virt-sysprep -v -x -c qemu+ssh://user@IPADDRESS/system -d REMOTEVM --hostname REMOTEVM --root-password password:123456 --upload /home/www/interfaces:/etc/network/...
nadermx's user avatar
  • 545
0 votes
0 answers
787 views

SSH connects successfully then disconnects when typing any key

When I connect from my laptop I am able to connect successfully and if I do not type anything the connection stays open. However, any keystroke results in the connection being broken with the message ...
jon3laze's user avatar
  • 223
1 vote
0 answers
53 views

Path in Ubuntu Core

I have a basic question: I'm running Ubuntu Core in a Raspberry, but I am unsure about the directory structure. In my understanding, Ubuntu Core uses environments (snaps) where programs are installed....
razimbres's user avatar
  • 160
-1 votes
1 answer
2k views

Does Ubuntu 16.04.4 LTS include an SSH server by default? [duplicate]

According to this answer, SSH is disabled by default. However, looking around at tutorials, there were plenty of examples of installing an SSH server (e.g. sudo apt install openssh-server), which I ...
user3.1415927's user avatar
2 votes
1 answer
21k views

Where is my private key?

I was following this tutorial to generate and assign a key to one of my servers, but before running ssh-copy-id -i ~/.ssh/mykey user@host I was tring to find my private key and guess what I can't find ...
kpuccino's user avatar
  • 123
4 votes
1 answer
555 views

How to write in bash to ssh to different machine and create tmux session then run some command in it

Basically I want to write some script like #!/bin/bash for idx in 1 2 3 4 5 6 do ssh machine$idx tmux new-session -d -s "myTempSession$idx" python run.py done which can do the thing ...
K.Wanter's user avatar
  • 848
2 votes
1 answer
16k views

sshfs empty the source path with -o nonempty

I came across a strange mistake, I have some data on machine1 at /temp/user1/data/ I want to share it with another machine2, so I created same directory as mkdir /temp/user1/data/ then on ...
K.Wanter's user avatar
  • 848
6 votes
1 answer
23k views

SSH: StrictHostKeyChecking is set to no, but prompt still appears

I am trying to set up auto deploy from my script, which is ran through Travis CI, so I need to SSH into my server without any prompts. My deploy script looks like this: ssh [email protected] -i ./...
bigpotato's user avatar
  • 225
0 votes
0 answers
482 views

ProxyCommand for ssh jump failed for one machine but works for others

I have ~/.ssh/config file on my local machine as: Host head User Marry HostName xxx.xx.xxx.xx Host machine1 User Marry HostName xxx.xxx.xxx.xx IdentityFile /home/Marry/ssh_head_keys/id_rsa ...
K.Wanter's user avatar
  • 848
-1 votes
1 answer
1k views

Why can't I install local deb files properly [duplicate]

I need to make a list of deb files, which allows me to install things without Internet. As we know, when we execute apt-get install XXX, we can find some deb files at /var/cache/apt/archives/. With ...
Yves's user avatar
  • 1,288
2 votes
1 answer
15k views

Cannot delete .git directory

I try to run sudo rm -rf .git/ but the terminal return the following message: rm: cannot remove ‘.git/objects/pack/pack-3818f69fa7bd64ef22c94c0bf630c18333cd5da9.idx’: Operation not permitted rm: ...
marcelo2605's user avatar
-2 votes
1 answer
627 views

Is remote access possible when SSH and Telnet are disabled?

My SSH and Telnet are disabled. If someone on my home network has my root password of my Ubuntu workstation can he gain remote access to my PC?
justlinx69's user avatar
0 votes
0 answers
370 views

ssh not connecting

I'm not able to connect to my computer through ssh. Here are the steps I've taken already: Linux (Ubuntu) connected to internet--check Ran sudo apt-get install openssh-server (on the receiving ...
j450n's user avatar
  • 161
1 vote
1 answer
566 views

How do I enter Setup and get into Ubuntu Core command line in a Raspberry Pi 3?

I successfully installed the Ubuntu Core in a Raspberry Pi 3. The system starts, I completed setup and now when I start the system, states firstly "No ethernet found", load all libraries and it goes ...
razimbres's user avatar
  • 160
0 votes
0 answers
2k views

Cannot Resolve Ubuntu-vnc-server?

I'm following a tutorial (https://linuxconfig.org/vnc-server-on-ubuntu-18-04-bionic-beaver-linux) for how to set up a VNC server for remote access on a Kubuntu 18.04 machine. Everything was going ok ...
Sarah Szabo's user avatar
  • 1,493
3 votes
2 answers
2k views

Terminal rows are misaligned when using TMUX over SSH

I updated Ubuntu from 16.04 to 18.04 last month, and have noticed some odd behaviour when using TMUX over SSH ever since. (This issue does not occur on the console directly.) To access this shell I'm ...
Adambean's user avatar
  • 149
6 votes
3 answers
12k views

List ports forwarded by myself from ssh?

If I connect to a server like so: JP_PORT=$(shuf -i 8895-9100 -n 1) TB_PORT=$(shuf -i 6010-6200 -n 1) ssh -Y -L ${JP_PORT}:127.0.0.1:${JP_PORT} -L ${TB_PORT}:127.0.0.1:${TB_PORT} <host> Once ...
Austin's user avatar
  • 173
14 votes
2 answers
11k views

Inadvertently removing .ssh/authorized_keys , is it a serious mistake?

I am new to set up SSH Keys on Ubuntu 16.04. I was looking for an authorized key to remove named anne but I think I deleted the whole authorized_keys file. mike@mike-thinks:~$ rm /home/mike/.ssh/ ...
Revolucion for Monica's user avatar
0 votes
0 answers
35 views

Ubuntu server has no internet connection after upgrade from 14.04 to 16.04 [duplicate]

I'm a bit new to linux and ubuntu specially command line stuff. So I currently have a VPS which was running on a 14.04 ubuntu LTS, and as I needed a 16.04 version, I searched and found the way to ...
Arman Momeni's user avatar
2 votes
0 answers
2k views

Unicode/UTF-8 problems in ssh session with Ubuntu Server 16.04

I have a fresh Ubuntu Server 16.04 installation, and I am now testing how it handles unicode characters: I have a file name with a unicode character in it: testā.txt. If I pick up it with a tab, ie $ ...
Passiday's user avatar
  • 265

1
48 49
50
51 52
125