Questions tagged [ssh]

Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.

3,693 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
2k views

ssh connection sporadically hangs

Whenever I ssh to elsewhere, the connection is fine for 1-10 minutes, then hangs: no error messages, just stops accepting input. I can exit (CR-~-.) but that's it. I can't find anything suspicious ...
petrelharp's user avatar
4 votes
0 answers
1k views

Invoking a local command on every successful connect when using ssh multiplexing?

I'd like to automatically run a command every time I successfully connect to a remote host via ssh. I can do this for the first connection to each host using the PermitLocalCommand yes and ...
Shabble's user avatar
  • 266
4 votes
0 answers
996 views

ssh port-forwarding and remote bind failure: ExitOnForwardFailure not working?

I have two FreeBSD 9 hosts and I want to maintain a tunnel to reach firewalled host R from a high port on cloud host C. ssh -y -i tunnel_id_rsa -o ConnectTimeout=60 -o ServerAliveInterval=20 -o ...
cjp's user avatar
  • 201
4 votes
1 answer
2k views

ssh session occasionally hangs for some time

I have several ssh connections to a server that is in the same LAN as my desktop machine. Some sessions have X forwarding enabled, some don't. Both types of sessions occasionally hang for a couple of ...
arne's user avatar
  • 236
4 votes
1 answer
1k views

How can I make OSX terminal tab names the same as .ssh/config host aliases

Setting up a .ssh/config is a great time saver. The host aliases with user defined names make it easier keep track servers and key files. However, the OSX terminal tab names are displaying what ever ...
tponthieux's user avatar
4 votes
0 answers
329 views

TortoiseGit stops connecting after a seemingly random amount of time

I use TortoiseGit to connect to a private remote git server, but after an indeterminate amount of time (possibly longer than 6 hours?), trying to connect results in a bad file number error. I've tried ...
PartyMix's user avatar
4 votes
2 answers
4k views

what's the difference between /etc/init.d/sshd start and /usr/sbin/sshd?

I'm having issues with passwordless ssh. I've checked, double checked and checked again that I have everything set up correctly. Both machines are RHEL6 and when the destination machine first boots ...
jasono's user avatar
  • 41
4 votes
0 answers
472 views

Changed home directory permissions on remote server, can no longer ssh into it

I changed the permissions on my ~ directory, and according to this question about ssh and home directory permissions I can no longer ssh into my remote server because it rejects my public key. Is ...
user730569's user avatar
4 votes
0 answers
4k views

SSH tunnel over HTTP(S) proxy (Reverse RDP)

I've been trying to accomplish this scenario: HOST_WORK is behind non-transparent squid_proxy (its not, but to get outside you need to use it, all other packets are black-holed on gateway not to ...
cat9's user avatar
  • 61
4 votes
1 answer
9k views

startx results in error "timeout in locking authority file /home/myaccount/.Xauthority"

About once a month, I try to start X windows on my local desktop with: startx but the terminal seems to hang, then gives the error: xauth: timeout in locking authority file /home/myaccount/....
Mr. Anonymous's user avatar
4 votes
1 answer
1k views

How to copy SSH keys when password authentication is already disabled?

Once you disable password authentication for SSH login, what is the way to get a new public key into the server? Background: I have had this issue forever-and-a-day, I have a server setup in another ...
Madivad's user avatar
  • 212
4 votes
1 answer
4k views

How to use OpenSSL with openCryptoki and software TPM?

I would like to make work OpenSSH with OpenSSL plus openCryptoki (pkcs11) plus a software TPM. As far as I have understood, openCryptoki is capable of software token (for test purpose). I would like ...
lalebarde's user avatar
  • 725
4 votes
2 answers
8k views

SSH Connection Error : No route to host

There are three machines in this scenario: Desktop A : [email protected] Laptop A : [email protected] Machine B : [email protected] All the machines have Ubuntu 11.04 (Desktop A is a 64bit one) and have both ...
Nihar Sawant's user avatar
3 votes
0 answers
180 views

Can't forward dynamic port to host using SSH

I'm trying to set up a SOCKS proxy server on HostA from HostC (which has external access to the internet) through HostB. After configuring PermitTunnel yes on /etc/ssh/sshd_config on HostC, I managed ...
robertinho's user avatar
3 votes
0 answers
385 views

How to troubleshoot a long delay when connecting over SSH?

SSH'ing to my Linux workstation from my Mac laptop works totally fine, except that there is sometimes a very long delay before I see a prompt. If I try again then it's fast like normal, but a few ...
jacobsa's user avatar
  • 151
3 votes
0 answers
910 views

Why gpg-agent not running after Windows 10 restart?

I have configured Putty to run with Yubikey for SSH connections following procedure here. I have configured remote server to accept only key connection. Everything was working as expected. After ...
AlexVal's user avatar
  • 76
3 votes
0 answers
2k views

ssh into a Win 11 PC: Failed password

I mean to ssh from a [Win 10 (es-AR locale, LCID 11274) + PS 7.1.3 client (PC1)] to a [Win 11 (en-US, LCID 1033) + OpenSSH server (PC2, with PS 5.1.22000)]. I followed the usual procedure in PC2 to ...
sancho.s ReinstateMonicaCellio's user avatar
3 votes
0 answers
600 views

How do I use OpenSSH network tunneling in Windows?

I want to use the OpenSSH tunneling capability that is described in this wiki entry, in which SSH tunnels all traffic at OSI level 2 or 3 via virtual network devices on both ends, a.k.a. tun/tap. I ...
Ethan T's user avatar
  • 434
3 votes
2 answers
453 views

Terminal for colorized output on remote linux servers

I frequently SSH into remote ubuntu servers to observe output. What I'd like is certain terms (e.g. ERROR) to be colorized, (e.g. in red). My understanding is that this is typically done by the shell, ...
Nik's user avatar
  • 467
3 votes
0 answers
196 views

enable rxvt option for ssh as in putty

You can enable "rxvt" option for putty like this: I did this and now Home/End/Delete keys are distinguished by the terminal on the remote server, despite $TERM is still xterm. Can you do ...
a_girl's user avatar
  • 286
3 votes
0 answers
2k views

Using SSH ProxyJump and SSH Agent Forwarding back to back

There is a series of ProxyJumps I have to do, to get to a specific target system T. The last hop to T does NOT support TCP forwarding at all, causing ProxyJump and ProxyCommand to fail, so that's not ...
GxTruth's user avatar
  • 131
3 votes
0 answers
656 views

SSH Hangs Indefinitely (on any port) Only On Specific WiFi Connection

So, I have a DigitalOcean droplet with key-based authentication over SSH. However, if I am connected to a specific WiFi network, the connection hangs indefinitely while connecting to the server. If I ...
Alex Huszagh's user avatar
3 votes
0 answers
2k views

SSH hangs on Mac OS X Big Sur 11.2 when connecting with domain, not with IP

Since updating to Big Sur I've had problems using ssh. Running ssh [email protected] simply hangs, printing nothing at all. Running ssh -v [email protected] gives OpenSSH_8.1p1, LibreSSL 2.7....
David's user avatar
  • 39
3 votes
0 answers
253 views

What is this entry in my ssh known_hosts file?

I was taking a look at my ssh known_hosts file, and it only included 2 entries. The first line was the GitHub keys, so nothing weird there. However, the second line had a bunch of Chinese text, which ...
cruzazulini's user avatar
3 votes
1 answer
7k views

Can no longer forward X11 with MobaXterm

Until today, I was able to effortlessly enable X11-forwarding with MobaXterm from my Linux laptop to my Windows laptop. However, as of today, I am suddenly getting this error message whenever I try to ...
Lyrositor's user avatar
  • 131
3 votes
0 answers
606 views

Open a local folder in a VSCode Remote-SSH session

I am using Microsoft Visual Studio Code 1.50.1 on Windows 10. I'd like to develop on a remote virtual machine running in Amazon Elastic Compute Cloud (EC2). This works fine, but I can't open a local ...
Trevor Sullivan's user avatar
3 votes
0 answers
349 views

What should go in an ssh key comment?

I noticed when I list my identities with ssh-id -l that I can't differentiate them because they were all created by me on this PC, so the comments take the form of user@mypc which is not particularly ...
GameKyuubi's user avatar
3 votes
1 answer
2k views

Windows Terminal Ctrl key not working

I have a Ubuntu machine on the internet. I've used Windows Terminal to open PowerShell then used the Windows ssh command to connect to the Ubuntu machine. Finally I ran vim on the remote machine. I ...
Martin Brown's user avatar
3 votes
1 answer
59 views

Git auth on EC2 works via command line within X2GO, but not by SSH

I work on multiple EC2 instances which each contain repos that need frequent updating. So I ssh to the EC2 instance, cd to the repo, and run git pull. Simple enough. The problem is outlined in the ...
barnhillec's user avatar
3 votes
1 answer
2k views

Login as root over SSH without knowing the password (sudo -s)?

I SSH to a server with: ssh user@host and then I change to the root user with: sudo -s providing my own password NOT the root user password - as I understand this works because I am in the sudoers ...
u123's user avatar
  • 550
3 votes
0 answers
849 views

ssh tunneling for sftp in MobaXterm in Windows system

How to set ssh tunneling for sftp in MobaXterm? I know PuTTY can set ssh tunneling for sftp when there is a gateway between your local computer and the remote server. But I can not find the same ...
Jingnan Jia's user avatar
3 votes
0 answers
3k views

How to set mobaxterm to factory settings?

I have been using mobaxterm for ssh connection to a ubuntu server to compile and run C programs. I use the sftp settings to edit code on the fly with its built in text editor. Everything was great ...
Naman Jain's user avatar
3 votes
0 answers
1k views

New /etc/hosts domain not working when called with SSH from terminal

I am connecting via ssh to a remote server, as follows: ssh [email protected] The process works fine as I have the password to get into the server I need to work with. I wanted to set a name to the IP ...
uomoz's user avatar
  • 31
3 votes
0 answers
1k views

SSHFS keeps asking for a password despite ssh key present

I have a valid SSH key on my client, and my public key is uploaded on the remote server. I can login with the SSH key without being prompted for password using SSH, but when I try doing so with SSHFS ...
Nikolay Shindarov's user avatar
3 votes
0 answers
443 views

Eclipse: Failed to connect sshd on "hostname" Auth Fail

I have the following issue when I try to start an ssh interface (shell) to a Unix host using Eclipse (Remote System Explorer) I think that there is an issue related to the (Generate RSA Key: ...
Lorenzo Castagno's user avatar
3 votes
1 answer
646 views

macOS ssh ignoring UserKnownHostsFile option

I'm frequently sshing to virtual machines through a jump host that have ephemeral IP addresses and often have changing ssh keys. I don't want to be prompted if the ssh key changes nor prompted to ...
magiclantern's user avatar
3 votes
0 answers
1k views

sshd[2615]: Connection closed by authenticating user vagrant 192.168.77.13. How to configure sshd?

I have four Vagrant VM's on my Ubuntu 18.04. When I try to copy ssh keys from my server to target ssh-copy-id [email protected] /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/...
MikiBelavista's user avatar
3 votes
0 answers
601 views

FileZilla sftp attempts to authorize via key before set password

I'm using FileZilla to sftp into a remote server. The logon type is "normal" with a username and password set. However, when I try to connect, based on level 3 debugging in FileZilla, it tries all of ...
Brian's user avatar
  • 31
3 votes
1 answer
869 views

miniDLNA (ReadyMedia) disconnects after few minutes

I'm using miniDLNA on my Pi 3 and I'm encountering weird issues that I've never encountered before, after setting up the Pi from scratch. Setup Pi connected via internal WiFi and via ethernet DLNA ...
Sebastian Schlicht's user avatar
3 votes
1 answer
820 views

Keep local shell for remote ssh sessions

I've recently started customising my shell on my mac (mojave). I now run a fairly customised zsh shell with oh-my-zsh and a number of other plugins/themes/customisations. Enter remote servers (rhel). ...
Skipper's user avatar
  • 31
3 votes
0 answers
950 views

Desktop for multiple remote sessions on Ubuntu?

I am looking to buy a desktop PC for my company, fast enough that multiple users (4 at a time, at most) can login over network and have decent a development experience. I am looking for some advice on ...
user avatar
3 votes
0 answers
915 views

macOS proxy.pac not working?

Under Network->Advanced->Proxies->Automatic Proxy Configuration I have it set to http://www.sendu.me.uk/sanger/proxy.pac, the contents of which are: function FindProxyForURL(url, host) { if ((...
sbs's user avatar
  • 131
3 votes
0 answers
400 views

Can’t access my Mac’s SSH port outside of my home network. Forwarding rule is set. What might be wrong?

As the title said, I am trying to set my mac as a ssh server. My mac's local IP is 192.168.0.21 and my external IP (router IP) is 98.202.108.***. I went to the sharing and enabled the Remote Login. ...
Di Miao's user avatar
  • 131
3 votes
0 answers
536 views

How to route vpn traffic so it can only use ssh

I want to make an SSH connection e.g ssh [email protected] -p 22 SSH connection can only be made when connected to VPN tunnel. I can connect to VPN tunnel like this echo PASS | sudo openconnect --...
Godhaze's user avatar
  • 51
3 votes
1 answer
10k views

openssh windows bad owner or permissions

I've installed openssh for windows and when I run ssh localhost I get Bad owner or permissions on C:\Users\gary/.ssh/config I've looked at these 2 questions "Bad owner or permissions" ...
gary69's user avatar
  • 131
3 votes
0 answers
7k views

nginx port forwarding / ssh tunneling

I have a computer (let's call it A) on a local network with no static IP address accessible from the outside. (SSH port AAAAA) A has a webserver that I want to be able to access from the outside I ...
lagarkane's user avatar
  • 131
3 votes
1 answer
272 views

Putty stops displaying colors when in SU

So as the title suggests my putty stops displaying colors as soon as i enter SU. I dont know if this is how its suppose to work or if there is any work around, already tried googling but only come up ...
storms's user avatar
  • 31
3 votes
0 answers
2k views

Allow USB device access from SSH session

I am trying to set up a RaspberryPI 3 connected to a Canon EOS 350D (Rebel TX for American friends) for a timelapse using gphoto2. Everything works perfectly locally (monitor and keyboard connected to ...
Francesco Zaffaroni's user avatar
3 votes
0 answers
60 views

Why do I sometimes see a file named something like ".nfs000000000048134c000001e7" when I run ls -a?

I'm ssh'd into a server running some form of linux. Here's what ls -al returns: -rwxr-xr-x 1 ari csugrad 12088 Jan 20 20:33 .nfs000000000048134e000001e8 It's an executable file, and executing it ...
Ari Sweedler's user avatar
3 votes
0 answers
688 views

How to find out dynamic reverse SSH remote port without sudo

I can initialize reverse SSH from client with following command: $ ssh -R 0:localhost:22 <server_host> Allocated port 42853 for remote forward to localhost:22 How can I figure out that 42853 ...
Jaakko's user avatar
  • 320

1
2
3 4 5
74