Questions tagged [ssh]
Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.
10,741
questions
3
votes
3
answers
447
views
Browse a web page through SSH? (Need to access router web interface remotely, but only have SSH access to a different device on LAN)
I need to remotely open a port on a router (remote web access is off).
I have SSH access to a Raspberry PI (Debian) that is on the same LAN as the router.
Is there some way I can do that remotely from ...
0
votes
2
answers
44
views
Does ssh remember private keys?
I think -i option of ssh is designating the key file.
I found I could be authenticated by github.com with any file, even empty one as following screenshot.
But after rebooting, I can no longer be ...
-2
votes
0
answers
31
views
can I send "sudo su" command automatically , when I do ssh to a host?
suppose that I do ssh to a host:
test$ ssh host1
test@host1$
I need to do the "sudo su" manually and then enter password.
test$ ssh host1
test@host1$ sudo su
Password: **********
root@...
0
votes
1
answer
19
views
User Session limit in Rockey Linux -8
I have a linux server running with Rocky Linux-8. When more than 5 users with same userid tries to connect to the server, the access is denied with error "Remote side unexpectedly close network ...
0
votes
1
answer
34
views
OpenSSH dynamic port forwarding from server to client
Is there a way to create a SOCKS5 proxy on the OpenSSH server side that proxies traffic to the SSH client?
I know there is ssh -D but this only can forward requests from the client to the server.
...
0
votes
0
answers
11
views
Access a TTY on Linux from a Windows app that only understands COM ports
I have this working situation:
Windows putty<--->ssh<---->Linux<--->/dev/ttyUSB0<--->hardware
Running tio /dev/ttyUSB0 when logged into the Linux box via putty works as I ...
0
votes
0
answers
19
views
ssh to remote machine delayed ( more than a minute or two ?? )
I am observing a considerable time lag when I do ssh from any of my client machines(Windows11 cmd , RHEL9 tty login to remote server(RHEL9) . But recently this behavior appears (last two days) ...
0
votes
0
answers
12
views
Solar-PuTTY keeps showing "Pageant: Couldn't load this key (unable to open file)" when begins to connect
I use Solar-PuTTY 4.1.0.0 on Windows 11.
Every time I use it connect to a server with ssh, it always shows this:
However,
The connection is successful.
Pageant also loads the key correctly (the key ...
1
vote
1
answer
48
views
How do I use the running ssh agent when calling wsl commands from cmd
I am trying to call rsync from cmd using "wsl rsync" however it always asks for my ssh key password. How can I use the running agent within wsl instead of needing to type my password every ...
0
votes
1
answer
17
views
scp with ProxyJump using intermediates private key
I need to connect to a remote machine which then can connect to another one and download a file from there. To read the file, I would do:
ssh REMOTEMACHINE
- Enter password
ssh HIDDENMACHINE
- ...
2
votes
1
answer
43
views
Access to USB HSM Token
I have an ubuntu 24.04 and a Nitrokey HSM.
I use p11tool --list-token-urls to list the HSM url.
When I run it from a local session it works, and it print:
pkcs11:model=p11-kit-trust;manufacturer=PKCS%...
0
votes
0
answers
16
views
SSH Access Denied Even After Configuring AllowUsers with IPv4 Addresses
I am trying to restrict SSH access on my VPS to specific users and IP addresses by using the AllowUsers directive in the /etc/ssh/sshd_config file. I added the following configuration:
AllowUsers ...
0
votes
0
answers
30
views
scp using ProxyCommand and RemoteCommand
I want to scp files from my local machine to a remote machine that needs a JumpHost - via ProxyCommand - and a RemoteCommand on the remote machine to become another user. To ssh to the remote machine ...
0
votes
1
answer
49
views
How can I access Incus container with SSH connect from VSCode?
Context
I have a host that runs on Fedora 38 (yes, I know, I'll upgade soon).
I have a few LXC containers that I can access with VSCode (VSCodium, actually, if that makes any difference). I use the ...
0
votes
0
answers
103
views
SSH cannot establish outgoing connection but can accept a connection from outside when using Debian [closed]
Awaiting a fixed connection and I'm using a TP-Link router with a SIM card.
Mac and Windows machines work but a PC under Debian 10 Buster has the following problems:
From the Mac and Windows I can ...
0
votes
0
answers
75
views
Why does SSH give “connection refused?”
SSH is giving "connection refused" message even though:
I can ping the remote server.
I am able to login on remote server localhost. i.e. ssh localhost works fine.
lsof -i:22 shows "...
0
votes
0
answers
18
views
Recconnect to MobaXterm desktop environment
I'm connecting from a Windows machine to a Linux desktop environment using MobaXterm using the Remote environment option in the SSH session settings.
IT imposes that the Windows machine is rebooted ...
2
votes
0
answers
39
views
Odd rysnc hard link handling over ssh
I have a filesystem, /mnt/tosh, that I want to transfer periodically to a backup over ssh using rsync.
It contains a subdir /mnt/tosh/vorbis that itself contains dirs that contain hard links, eg
...
0
votes
1
answer
49
views
ssh connection (2 hops)
I'm not sure how to formulate my question in a title format, that's why I can't google it normally, but basically what I need to do is the following,
I have a work laptop which I use to connect to ...
0
votes
1
answer
55
views
linux ssh command with password (one liner) [duplicate]
Is it possible to run ssh command and also pass the password as a string, all in one line?
I have tried:
echo "password" | ssh -tt user@server
But it didnt work.
0
votes
0
answers
48
views
How to SSH over a specific WiFi/ethernet connection?
I am using a Windows 10 PC with both WiFi connection and ethernet connection. The WiFi is connected to the Internet, while the ethernet is connected to an embedding device which has the IP of 172.16.0....
0
votes
0
answers
27
views
How to Set Up Dev Environment Through SSH to remote Desktop's WSL?
I'm seeking advice on setting up a development environment given some constraints. Here's our current setup:
We have a laptop with low permissions, and we can only install VSCode on it.
We can use ...
0
votes
1
answer
52
views
Jetson TX2 is unreachable over ethernet
I’ve managed to connect my TX2 Developer Kit ( Ubuntu 18.04 installed with JetPack 4.6.5 ) to my laptop ( Ubuntu 20.04 ) with ethernet cable but neither I can ping or connect via SSH. These are the ...
-2
votes
0
answers
48
views
Can't SSH into my Ubuntu server, unless I log on locally first [closed]
I've read all the old comments and posts, nothing works.
I just setup an Ubuntu server OS on an old desktop.
I can SSH perfectly fine when I'm logged into the server, but when I try to do it without ...
0
votes
1
answer
24
views
Can't connect to host after enabling WireGuard tunnel
I installed WireGuard on my host and set this configuration
/etc/wireguard/wg0.conf:
[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = [REDACTED]
PostUp = iptables -A FORWARD -i %i -j ...
0
votes
0
answers
22
views
Restrict sftp-user to specific directory only which is on a mounted volume
I have the following setup:
The user quack is in a chroot-jail which is on a mounted volume.
It is defined in the following way in the /etc/ssh/sshd_config:
Match User quack
ChrootDirectory /sftp/...
0
votes
0
answers
27
views
linux vim set clipboard as system clipboard
I am on a window 10 terminal using ssh remoting my machine on aubuntu 24 os and with vim(VIM - Vi IMproved 9.1 (2024 Jan 02, compiled May 03 2024 02:45:42))
The clipboard feature is onfeatures
vim ...
0
votes
1
answer
78
views
Why can I log in with Putty SSH as one non-root user, but not as a new non-root user?
I already have a user "tom" set up on my Debian system, which was created when first installing the OS. This user is able to successfully log in via SSH using Putty.
Now I have set up a new ...
-1
votes
1
answer
30
views
Headless Raspberry Pi Zero: Password not working when properly imaged on Raspberry Pi Imager
When SSH'ing into my Pi (via IP address) from my work computer (PC), I normally see this at the password prompt:
[email protected]'s password:
In this scenario, I can log in successfully.
However, ...
0
votes
0
answers
11
views
Close SSH connection if no key is pressed for x seconds
How to get the SSH connection to close if the session is idle (more specifically if no key is pressed for a certain ammount of time.) I use tmux so I wouldn't lose any data if the connection closed ...
0
votes
0
answers
17
views
x2go does not use my ssh agent?
I have an Arch Linux setup and I use x2go to remotely access an Arch Linux server on my LAN.
I used to use I think the standard gnome keyring for my SSH agent, and now I am using gcr instead (per the ...
0
votes
0
answers
30
views
Start VLC via SSH and close connection
I want to start vlc playing a video via an SSH connection to and immediately close the SSH connection after vlc has started playing. No matter what I try (using screen, using an &, using nohup) ...
3
votes
0
answers
65
views
How to use OpenSSH's ssh-add successfully?
After creating a new keypair [.ssh\id_ed25519] with ssh-keygen -t ed25519, upon trying to add it into ssh-agent, I receive an invalid format error:
$ ssh-add .\.ssh\id_ed25519
Could not add ...
0
votes
1
answer
21
views
Windows OpenSSH rejects key when DefaultShell is set in registry
I have setup an OpenSSH server on a Windows 2022 machine with key based authentication. It works, I can connect from a client using: ssh [email protected]
Unfortunately, OpenSSH uses cmd as the ...
0
votes
0
answers
27
views
WSL 2 ssh server not working
I'm trying to set up an ssh server in Ubuntu on WSL2. I have the server running in Ubuntu on port 22, and then I've configured port forwarding from port 25252 on the Windows host to port 22 in Ubuntu. ...
0
votes
1
answer
49
views
SSH into a router - connected off main company WiFi
I am setting up a test environment where it is necessary to switch a WiFi router off and on from within test software. The current set up is:
Archer A23 (192.168.0.1) is the Main WiFi router. ...
0
votes
0
answers
55
views
MobaXterm ssh password paste not working
I need some help with MobaXterm.
I would like to unlock my LUKS crypted disks on my server with dropbear-initramfs.
With the normal PuTTy Client I can connect to the server paste my password by a ...
0
votes
0
answers
43
views
How to automatically restart a SSH tunnel?
I am working mostly from coffee shops, etc., and typically I use a tunnel to a database during that time.
I use a USB connection from iPhone to a Mac to provide the internet (I have unlimited 5G, and ...
0
votes
0
answers
49
views
Broken Pipe every time I try to transfer file from my local to my server using SSH
So I have a Digital Ocean Droplet to which I'm trying to send some files using SCP. However, the Message Authentication Code gets corrupted every few seconds after initiating the transfer. This causes ...
0
votes
2
answers
46
views
git doesn’t obey to my IdentityFile configuration
Preamble
Basically, I followed the recommendations in this other tread.
The situation
I have in my ~/.ssh/ two keys. id_dsa_git (the one I use for github) and id_rsa.
So, when I try to connect to ...
0
votes
1
answer
34
views
SSH, how do i know username and password? why arent my tunnels working?
So ssh is something new i discovered, i want to bypass a network guard i made for experience, i cant seem to understand how ssh -N -L localhost:8000:localhost:80 root@servername now. i understand the ...
0
votes
2
answers
128
views
How do I automate transferring files daily from SFTP Server that requires Putty PPK private key file to authenticate?
I am trying to find a solution to move files from our third party's SFTP server which requires to use ppk file to authenticate.
I am able to go into that SFTP server manually by putting host name, ...
1
vote
0
answers
53
views
What might be the reason for slow SFTP connections to local virtual machine?
I have an Ubuntu 22.04 server on VMWare Workstation on my local development machine (Windows 10) for development purposes. It runs Apache/MySQL and has sufficient allocated memory and CPU.
When ...
1
vote
0
answers
52
views
How to stop Windows Terminal from displaying spaces after characters in NFD form?
I am connected from Windows to macOS Sonoma via SSH, the path /Volumes/smbshare is an SMB-mounted share (on a Linux host). LANG is set to ja_JP.UTF-8:
This is what I see in the Windows Terminal (1.20....
1
vote
1
answer
62
views
VirtualBox to Docker on WSL2 with SSH
I am struggling trying to establish a SSH connection from my VirtualBox VM to a Docker Container which runs on WSL2.
The SSH runs with the following port and IP-addresses:
WSL2 Port 22, IP 192.168.41....
0
votes
1
answer
68
views
SSH auth with server, disable password login
I'm trying to connect to a server I host on my local network, using SSH publickey authentication. I'm using the 1password SSH agent.
When I make a request (using -vvv for verbose logging) I can see ...
2
votes
0
answers
375
views
Cannot complete login due to an incorrect user name or password
I have a vCenter version 6.0.0.3 which was turned off for some reason. When I powered it back on, its network settings were deleted! And I couldn't log in with the vCenter root password; it showed an ...
0
votes
0
answers
32
views
Cannot ssh into host or access any hosted service, but WireGuard works
I'm having an extremely strange issue.
I have an Ubuntu server running a few docker containers (including a WireGuard server) on my home network. It has the IP 192.168.1.208. The WireGuard port 51820 ...
2
votes
0
answers
26
views
OpenSSH on Cygwin seems to implicitly assume that it should go into the background if ControlPersist is given
This command
ssh -M -S skt -N -o ControlPersist=60 localhost
when run from the Git Bash prompt on Windows, seems to behave as it were actually ssh -f -M .... That is, it implicitly forks a ...
0
votes
0
answers
56
views
Why isn't 127.0.0.1 in a list of known hostnames by default?
I was running an ansible script on a huge inventory of hosts, the inventory contained the IP address of the ansible control node itself, let's say 10.1.1.1
So naturally a bizarre situation happened: ...