Questions tagged [ssh]

SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.

Filter by
Sorted by
Tagged with
1 vote
0 answers
13 views

Fastes way to transfer multiple (~ 2GB+ each) files from remote Linux server

I need to constantly copy multiple large binary files from a remote Linux server. These files are all approximately 2 GB+ each, and there are usually 5-15 files I am interested in transferring at a ...
user avatar
0 votes
1 answer
12 views

How to SSH into Pod from outside a cluster without Internet access ? (K8S)

I created a K8S cluster (2 nodes and 1 master), that has no access to Internet, only the piloting machine has. I wanted to SSH into a Ubuntu-OpenSSH Pod, from outside the cluster and did a port-...
user avatar
0 votes
1 answer
26 views

SSH timeout does not happen

In Linux kernel 4.9.275,ssh version OpenSSH_8.5p1 and OpenSSH_8.7p1 session does not close automatically after specified time in clientaliveIntervl /etc/ssh/sshd_config. Is it bug? Kiran
user avatar
0 votes
1 answer
9 views

SSH with GSSAPITrustDns in Arch

I am trying to set-up my computer to ssh without a password to a remote server. I am following these instructions, but I am having a problem: I can successfully run kinit -f afsusername@CERN.CH and I ...
user avatar
0 votes
1 answer
10 views

rsync through multiple ssh hops

I connect to a machine via a command I do not fully understand (the -J): dargaud@local $ ssh -J ext-user@hop.example.com,user@gateway user@destination user@destination $ ls Now I would like to ...
user avatar
  • 585
0 votes
1 answer
26 views

ssh/scp config file with proxycommand still asks for password

My setup is like this: [local machine] --> [university network] --> [local machine in university network] [machine1] --> [machine2] --> [machine3] I have ...
user avatar
0 votes
0 answers
23 views

SSH Freezes/Lags after successful login and showing prompt

I'm trying to SSH into a Raspberry Pi from a local network (all devices on the same Wi-Fi). When doing this from my Windows machine, everything works normally. But when I use my Ubuntu machine, it ...
user avatar
1 vote
1 answer
49 views

How can I pipe an alias that requires sudo through SSH?

I've set up so that I can SSH securely into my home PC from my laptop. Today, I tried running an update just to test, but I couldn't do it from the laptop. What I basically wanted to do, was to pass ...
user avatar
  • 1,020
0 votes
1 answer
25 views

Old Linux rejects my ssh id_rsa key from newly installed windows

I have been maintaining an old Linux server (CentOS 6.5) for long term. I access that Linux server by ssh with 'pub key auth'. Now I just bought a new Windows (win10 or 11 not sure) laptop and ...
user avatar
0 votes
1 answer
58 views

Login to server without enter user password

I want to enter the password of the ssh-key and enter the server But now I am entering the password of the user server I have adapted my public key to the server using ssh-copy-id, but I still get ...
user avatar
0 votes
1 answer
18 views

ssh: why my disabled forward X11 for specific host don't work?

I use an alias for ssh alias ssh alias ssh='ssh -t -K -Y I want to use ssh forwarding X11 except for one host so i did this: vim .ssh/config host myhost port 22 ForwardX11 no ...
user avatar
  • 11k
-1 votes
0 answers
31 views

Intermittently Unable to Connect to Host via SSH

I'm trying to connect to an NVIDIA Jetson AGX Orin DevKit (Ubuntu 20.04) over my local network. I believe that I've set up the SSH server correctly because sometimes I'm able to connect to it. However,...
user avatar
0 votes
1 answer
15 views

Identity Not Working if adding "IdentitiesOnly yes" to *

I have a config file in .ssh here Host * AddKeysToAgent yes IdentitiesOnly yes #Github (default) Host gh HostName github.com User git IdentityFile ~/.ssh/id_rsa #Bitbucket (secondary) Host bb ...
user avatar
0 votes
2 answers
24 views

Jenkins sh : wait for wget download to finish

I have a hard time to force wget command to wait until download finish's, problem occurs inside Jenkins sh '''script place '''. I have wrote the script in .sh file, where it runs without any issues, ...
user avatar
0 votes
0 answers
15 views

MPI job stopped with ssh disconnected

I have been using MPI in THCP diskless sever. However, when I run jobs with MPI, sometimes the process die because of SSH disconnected. client_loop: send disconnect: Broken pipe There is no error or ...
user avatar
0 votes
2 answers
67 views

Login SSH using RSA key instead of normal login

I use ssh-keygen to generate a pair of keys on Kali ~/.ssh folder. Great. I also added the public key to ~/.ssh/authorized_keys. Permissions have been set to 600 for that file too. Results are: Putty:...
user avatar
1 vote
0 answers
14 views

how to pipe Wayland clipboard into an X vnc session clipboard over ssh

I am using Wayland on Arch, and am sshed into a debian server which uses X11. I have a vnc session running over that ssh connection. I would like to take a string that I have stored in my Wayland ...
user avatar
0 votes
0 answers
19 views

Failed ssh sttempt via Ansible

fatal: [SW1]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "paramiko: The ...
user avatar
0 votes
1 answer
22 views

autossh always exits in error

I've aliased ssh to autossh -M0 for convenience, and it works well. However it always exits in error, which causes problems with my scripts. e.g. ssh me@myserver 'true' # equivalent to: autossh -...
user avatar
  • 1,427
0 votes
1 answer
33 views

Apply ssh rule for different hosts

My current .ssh/config file has below config. Host * FingerprintHash sha256 StrictHostKeyChecking yes PasswordAuthentication no GSSApiAuthentication no KbdInteractiveAuthentication ...
user avatar
  • 13
0 votes
0 answers
24 views

SSH or telnet as an unpriviledged user leads to 'socket: Permission denied' error

I'm running a strange 3.0.35 heavily patched kernel on an embedded device (Kobo eReader). Maybe it partly explains this issue.Basically: kobo:/$ ssh root@127.0.0.1 socket: Permission denied ssh: ...
user avatar
1 vote
1 answer
51 views

Would a carriage return ^M in SSH key make a difference?

I cloned a git repo to a server that had same files scattered in different places. Then I compared two directories (cloned one to existing one) to make sure that they were exactly the same. The comp ...
user avatar
  • 323
0 votes
0 answers
30 views

Cant connect to RASPI via SSH

I can't SSH to my Raspberry Pi through internet, but I can do it through local network. I'm forwarding the LAN port 22 to wan port 23456 and connecting through a DDNS so ssh -p 23456 blabla@blabla....
user avatar
1 vote
1 answer
25 views

How to copy directory from remote machine which requires a specific UNIX group?

I need to copy automatically a list of directories from a remote machine into a local machine. Up to now, I was using rsync or scp for that: > rsync -a $USER@$HOST:/remote/a/b/c /a/b/c Now, the ...
user avatar
  • 83
0 votes
0 answers
22 views

Is it safe to keep server name and path to files in public git repository?

Hopefully this question is not off-topic: I find myself constantly scping files from a remote server, and I want to keep a bash script in GitHub that invokes scp and brings files. Is it safe to let ...
user avatar
0 votes
0 answers
16 views

Can ping and ssh to a server, cant ping the host once connected via ssh

Quick background: I'm connected to a remote network with open VPN on a virtual machine. Through the virtual machine's tunnel I can ping the server successfully and can connect to it with my ssh ...
user avatar
-1 votes
1 answer
26 views

SSH Tunneling on webServer, localhost:80 -> localhost:81, but I received Permission denied (publickey)

I try to make a SSH Tunneling, localhost:80 -> localhost:81 I generate my keys localy and add the .pub on authorized_keys in the cloud. But I received, Permission denied (publickey). Ok, not the ...
user avatar
0 votes
0 answers
38 views

no matching key exchange method found when using SFTP

My remote server(A) is having RHEL 8 OS and another server(B) runs with RHEL 5. I need to SFTP to server A to B. I have used below method. sftp usr@10.58.148.111 But I am getting below error. Unable ...
user avatar
  • 51
0 votes
0 answers
23 views

ssh session exits when cd command fails

I connect to a remote host using ssh. After connecting, if a cd command fails like below, my ssh connection exits right away. How can I prevent this from happening? scott@mac % ssh remotehost Last ...
user avatar
  • 1
0 votes
0 answers
28 views

Strange behavior when running top through ssh [duplicate]

It's strange that neither ssh user@192.168.1.59 bash -c "top" nor ssh user@192.168.1.59 "top" works as expected, whereas both ssh user@192.168.1.59 "ls" and ssh user@...
user avatar
  • 228
0 votes
1 answer
26 views

mouse click after ssh connection broken

I have logged into a remote server by ssh in the terminal. The connection was terminated due to the server going down or a network problem. Then something annoying appears. Once I click the mouse on ...
user avatar
  • 2,636
3 votes
1 answer
279 views

bash test wrong result when run noninteractively

I'm trying to reboot a number of Ubuntu servers via script when a reboot is necessary. When I execute bash with the test as a noninteractive command I get the result that no reboot is required, even ...
user avatar
0 votes
0 answers
24 views

Can't get list of files in directory in pam_exec.so script

I'm running a custom script on every ssh login to notify me if there was an a login by an unknown IP address that has not been added to a custom whitelist. I'm using pam_exec.so to check for this ...
user avatar
0 votes
1 answer
29 views

VNC (tigervnc) via 'actual' ssh tunnel

I understand that vnc which is not encrypted or secure usually is used via an ssh tunnel. I currently have the native Ubuntu 20.04 VNC server (vino-server) working via an ssh tunnel. The ssh tunnel is ...
user avatar
0 votes
1 answer
42 views

Why do I not need to start an SFTP Server ( why does SSH automatically start SFTP )?

Question When I start SSH server, my Debian automatically start the SFTP server as well - why is it design in such way? Environment: Linux 5.10.0-14-amd64 Debian 5.10.113-1 (2022-04-29) x86_64 GNU/...
user avatar
  • 391
0 votes
2 answers
32 views

"Reverse" SSH to Raspberry Pi with mobile internet access

I have a Raspberry Pi, which can access internet via mobile provider. I can install any software on this Pi and can program it to connect to any external host. But it has no static IP. Can I make this ...
user avatar
  • 2,617
0 votes
0 answers
27 views

Kerberos login with ssh from a sane Windows terminal?

Current setup: gitforwindows.org and the mintty terminal with bash. ssh to Linux with known username/password. Works fine. New requirement: use the Kerberos ticket in Windows to have password-less ...
user avatar
  • 1
0 votes
1 answer
21 views

How to configure SSH ControlPath correctly if %r contains slash?

The username contains slashes. If I use standard ~/.ssh/sockets/master-%r@%h:%p as the ConfigPath, ssh would complain that unix_listener: cannot bind to path ~/.ssh/sockets/master-username/which/...
user avatar
  • 101
0 votes
1 answer
18 views

Run application if and only if SSH Tunneling is active on port X

I am running a code-server on my remote Ubuntu machine and right now my method for starting it up is to ssh -t -t user@server "code-server" on one terminal (the -t -t I got from this) ssh -...
user avatar
1 vote
1 answer
45 views

How to: ssh over Jumphost to host, both on non-default 22 port?

Both my jump server and the final host run on non-default 22 port. According to https://wiki.gentoo.org/wiki/SSH_jump_host I tried ssh -J user1@host1:port1 user2@host2 -p port2 or ssh -J user1@host1:...
user avatar
0 votes
1 answer
38 views

How to create a VPN tunnel to ssh into one server from another server via a local VPN/proxy?

I have a problem that for 4 days no one has been able to solve. The problem might be on the datacenter side. The problem is that one server can't talk to the other server. I even got technical support ...
user avatar
0 votes
0 answers
28 views

how to run locally defined function on ssh remote-host?

I'm using bash, and below is my sample script. I've defined a function for remote ssh host, that runs another function. but when executed, it doesn't print anything. #!/usr/bin/env bash wdir=/var/www/...
user avatar
  • 1,703
0 votes
0 answers
10 views

Tmux sharing a same session but within different buffers?

One of the ways I use tmux is by sharing sessions in between hosts, so having additional "screens" controlled in one host. For that, I use Tablets and Smartphones using termux in the same ...
user avatar
0 votes
0 answers
20 views

Export a Windows 10 display for remote access

In my company We access remote clientes using VNC, but recently appeared many problems with VNC on the network, so We decided to abandon the protocol to do this job. I thought a solution to overcome ...
user avatar
3 votes
0 answers
37 views

Unlock an ssh private key with a biometric token instead of a passphrase

I have private ssh keys that are protected by a passphrase. Is it possible to unlock those keys with some biometric token, in particular my personal fingerprint, instead of the passphrase? I am using ...
user avatar
  • 131
0 votes
1 answer
29 views

Restrict users to specific ssh

So I have this issue at the moment, where everyone could theoretically log in into my Debian server as sudo if they had the password. Can I somehow restrict a user/group to a specific ssh-key so that ...
user avatar
1 vote
0 answers
95 views

Remote SSH connection from one server to another HANGS, no fail, no error

Trying to copy files from one server to another because the amount of files is not feasible to do by copying to my home pc and then out to second server. SSH, rync, and scp all hang from either server,...
user avatar
1 vote
1 answer
41 views

"Authentication refused: bad ownership or modes for directory /home/user" - how to force sshd accept auth despite "wrong" permissions?

For some reasons, I NEED the home directory of some particular user to be group-writable. However, when trying to login to that user with ssh key, sshd refuses the authentication, as it requires the ...
user avatar
  • 685
0 votes
0 answers
27 views

SSH port forwarding configuration for accessing a TCP port on a virtual machine from another virtual machine running the on same host hardware

Scenario I have the an Industrial PC that has two Operating Systems (virtual machines): Real-Time Operating System that can talk to PLC controllers Generic Linux (Ubuntu 20.04) Distribution The only ...
user avatar
0 votes
0 answers
18 views

ssh client & tmux interaction

I have to ssh into a server that immediately runs tmux. My problem is with some ssh clients logging to the server and running programs or scripts that "redraw" the screen. For example, ...
user avatar
  • 309

1
2 3 4 5
148