New answers tagged ssh
0
votes
Local display using Xming-Putty
The simiplest way to use X11 remotely with Xming, is to install Xming server on your desktop. Then connect to the remote server with your ssh client (that supports X11 forwarding), once connected, ...
1
vote
X11 forwarding from a remote Linux server to a WSL2 desktop
You dont need to use WSL2.
Download Xming X Server by default it will set a X screen :0 for all your local ips.
Once you are connected to the server with ssh. Set the DISPLAY Variable to your IP (...
0
votes
Accepted
SSH not recognizing that my public RSA key is already in the authorized_keys folder?
i want to know why SSH can't recognise that my public key is already in the authorized_keys file
On the one hand, the error message you get is talking about the host key – not the one you're using, ...
0
votes
Command to copy client public key to Windows OpenSSH SFTP/SSH server authorized keys file
The answer might vary based on whether the user is an administrator, and the language of the system.
Generate an ssh key
Use ssh-keygen to generate the public key id_rsa.pub and private key id_rsa.
...
0
votes
Still getting “ssh failure: Offending RSA key in /var/lib/sss/pubconf/known_hosts” despite removing the specified key from “known_hosts”
1st delete the host keys from the file showing the error. In my case it is /var/lib/sss/pubconf/known_hosts. Then regenerate from the source and push to ~/.ssh/known_hosts
Delete keys from the file:
...
0
votes
Unable to Connect to SFTP with Public Key
I just spent hours with this issue. In my case it was the authorized_keys file was not UTF-8 encoded. I generated it by doing an echo "<pubkey>" > authorized_keys in PowerShell and ...
3
votes
Accepted
How many environment variables can be passed through openssh SendEnv/AcceptEnv
OpenSSH is the most widely used SSH software. The OpenSSH sshd program, which handles the server part of ssh connections, has a hardcoded limit of 128 environment variables for sessions opened by the ...
1
vote
I'm unable to connect ssh using putty on my pc, but on other pc I can
"Connection timed out" usually indicates some firewall is blocking the connection. Assuming your VPN provides an unrestricted network path between the PCs, it might be located:
on your ...
19
votes
Accepted
sudo password not working over ssh
After your comments, it sounds like a tilde (~) character was giving you problems.
When you're in an SSH session, the escape sequence ^M~ (that's Return then ~, or Ctrl+M then ~) has a special meaning ...
0
votes
Accepted
Google Chrome to use SOCKS proxy when performing DNS queries: "proxy-bypass-list" vs. "host-resolver-rules"
Brave browser shows error message in flags page when using --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE 127.0.0.1".
Hence the correct flag is --proxy-bypass-list="<-loopback>&...
2
votes
Ssh load key error: invalid format
I was struggling too - the solution is simple! Add an extra line in your key at the end of the file.
Yes, that's simple! I don't know why the VSCode Remote SSH extension (@ext:ms-vscode-remote.remote-...
1
vote
SSH tunnel for VNC not functioning
I ran into this exact issue, now some 12 years ago. Turns out there's a setting in TightVNC under "Access Control" where you have to enable loopback connections, and by default it was ...
0
votes
How do i prevent websites from appearing in autocomplete in terminal?
I found the answer:
I was using a software called self-control as a content blocker, this software would write to my /private/etc/hosts file and write the websites that are being blocked by self-...
0
votes
Establish OpenVPN connection to server behind carrier grade NAT
install ubuntu server on it (if using raspberry pi 4), otherwise debian 10/11 on x86-64.
install openvpnas with the following commands
sudo su
apt update && apt -y install ca-...
0
votes
CConn: unable connect to socket: Connection refused (111)
This was happening to me while the VNC server was not started. I had an error in the config file; luckily I found out where the log is to find that out.
The running TigerVNC server from ArchLinux ...
2
votes
Permission denied when trying to SSH into CISCO virtual router
There are different ways to connect your GNS3 topology to the real world.
TAP
You can create TAP interfaces that you can access directly from the system that GNS3 runs on, and you can add those TAP ...
0
votes
Accepted
Permission denied when trying to SSH into CISCO virtual router
Turns out 192.168.12.1 was actually the IP for my home's router, that's why I could ping it and SSH always failed.
I created a TAP interface and added it to my Cloud in GNS3, linking the router ...
0
votes
SSH mysteriously blocked
While I have no direct experience with this issue, a search online finds that this issue is connected to QoS (Quality of Service).
Look at this answer on Server Fault.
As well as this issue report on ...
5
votes
Accepted
Router outputs "Bad IP address or host name" when trying to SSH from Linux terminal
You cannot connect to localhost:5001 with SSH because there is no SSH server running on localhost:5001. As GNS3 is telling you, there is a Telnet server running there, not SSH. So, you need to connect ...
1
vote
How to expose a home PC behind CG-NAT using a VPS?
Bumped into this problem and although late to the party thought this would help someone.
A simple way to accomplish this is reverse tunneling as follows:
On Client(Machine with no public ip):
ssh -R ...
0
votes
VNC Connection to a remote host with reverse ssh tunnel
The use of DNAT-to-localhost is somewhat redundant given that you could just as well have the SSH tunnel listen on 0.0.0.0:5555 directly. (To allow this, enable GatewayPorts on the listening side of ...
0
votes
Accessing samba shared files over internet
Samba is not safe by default to share over internet. I suggest you to use sftp or sshfs if both of your systems are linux.
0
votes
SSH - PasswordAuthentication no has no effect
Depending on linux distributions, If you are using Ubuntu 22, try this:
sshd -T | grep passwordauthentication
if you see output passwordauthentication yes, some configurations are set prior to ...
1
vote
How to convert PEM public key with -----BEGIN PUBLIC KEY----- into openssl key starting with ssh-rsa
From the looks of it, what you want is an OpenSSH key, not an OpenSSL key, so you have to use SSH tools.
Try ssh-keygen -ef id_rsa >out.tmp
It will give you another base64 code between dashed lines,...
1
vote
SSH config for remote servers using kerberos
As Tomek explained, the 2nd SSH client is run in a different environment. With the 'command' approach, this happens:
You connect to server 1 using "password" authentication.
Server 1 uses ...
0
votes
How to force GPG to use console-mode pinentry to prompt for passwords?
For me, export GPG_TTY=$(tty) did nothing - I had to install pinentry-tty and uninstall pinentry-curses. This fixed it using GPG in mutt, in screen, using SSH on a remote VPS.
4
votes
Accepted
Trying to better understand SSH -n -N -f flags
The -f or -n options are backgrounding the ssh client to which they are given, ie. on your local laptop. (Option -f implies -n, so you actually only need one of the two.)
Backgrounding is done so you ...
1
vote
SSH config for remote servers using kerberos
That's because the command line version works differently to the ProxyJump version and yes, this may enable Kerberos for the commandline but not for ProxyJump.
I a case of:
ssh -At [email protected] ssh ...
0
votes
SSH gateway server
I know it's an old thread, but my 2 cents:
"Teleport SSH Gateway" is a good open source option
https://goteleport.com/blog/ssh-jump-server/
0
votes
How can I setup 2 VPS can connect without using VPN which those VPS has already setup the ListenAddress to the VPN
You cannot use the original IP address, because you told sshd to not accept connections on it. That's what ListenAddress achieves – using it doesn't add addresses (the default is to listen on ...
1
vote
Vagrant cant provision vm with debian/bookworm64 ssh authentification failed
Okay I finally solved it! I think the reason was ruby-net-ssh So we upgraded our server from Ubuntu 20.04 to 22.04 and vagrant up was finally running passed the ssh authentifation step to provision ...
0
votes
Alternative to ssh-copy-id on windows
(given id_rsa.pub exists as when previously generated with "ssh-keygen -t rsa")
This single line answer is barely the same as that given by barlop without cygwin, mentioning that with ...
0
votes
Why doesn’t SCP work while SSH does?
One reason scp can fail, even when ssh works, is that the port number needs to be specified before the host. I don't know why. But this is wrong:
scp pi@localhost:/home/pi/paula-bean -P 3022 /mnt/home/...
0
votes
How to set PATH on MacOs for non-login shell?
some explanations:
I can't find any common place to set PATH for all non-login shells in macOS. maybe there is not any? :(
for example, this article explain some solution to set path for process ...
2
votes
Accepted
How do I copy text from vim on a remote host in Terminal, to local MacOS clipboard?
SSH doesn't provide access to the macOS-specific IPC system that 'pbcopy' uses; it only provides the "text terminal" interface, and clipboard access is not typically part of that.
Some ...
1
vote
Using "restart-computer" Cmdlet for remote computers using SSH
The simplest answer is that powershell can just invoke the built-in ssh.exe like other shells would:
# restart remote server over SSH:
ssh.exe user@hostname shutdown -r -t 0
A longer answer is that ...
Top 50 recent answers are included
Related Tags
ssh × 10524linux × 3508
networking × 1451
putty × 947
ubuntu × 905
openssh × 818
bash × 670
macos × 594
windows × 591
port-forwarding × 415
sftp × 411
ssh-tunnel × 380
scp × 368
tunnel × 363
git × 360
ssh-keys × 359
terminal × 332
proxy × 299
vpn × 275
security × 266
command-line × 261
windows-10 × 254
sshd × 254
router × 247
virtualbox × 217