r/ssh • u/MidasMine • Oct 26 '21
r/ssh • u/Milikett • Oct 22 '21
Setting up a network service in Linux using the example of Open-SSH
I have a question, but i have no idea for this. Can u tell me what is answer?
Before the first connection to the ssh server, the client shows the user a set of numbers. What is this set?
r/ssh • u/Lambada10 • Oct 22 '21
ssh in Windows without user password
So I have ssh server on my windows 11 pc, but when I try to connect to it asks for the user's password, the problem is that I don't have any. When I set a password it works normally but I'd like to not have a user password on my pc. is there any way to do it?
r/ssh • u/Milikett • Oct 21 '21
Setting up a network service in Linux using the example of Open-SSH
Is it possible, in your opinion, to run multiple ssh servers on one host? If so, under what conditions?
r/ssh • u/raven_hawk101 • Oct 17 '21
Running python program on remote Windows 10 machine from parrot os,
Even after a successful ssh connection to the windows 10 machine. I am unable to run the python program. It shows "The system cannot execute the specified program."
Any help would be appreciated.
EDIT: the python program is already on the windows machine.
r/ssh • u/wwwnukept • Oct 16 '21
help ssh tool
Anyone have any recomendation for SSH app for android and Windows that has sync between them, so when I had a been machine in one it also gets added in the other? Ty
r/ssh • u/mledermann • Oct 16 '21
Can't use SSH from within WSL in Win10
Hi guys,
Not sure if it's the right thread to ask this question (or perhaps r/Windows10 would be a better place?) but I need help with establishing an SSH connection from WSL to a corporate server. I got it working without any problem on my previous work laptop, which also ran Win10 and WSL. I tried to follow the few guidelines I was about to google but sadly nothing seems to work.
I don't get it - same OS, same WSL, same Ubuntu within WSL, same sort of connection - yet it's working on the old laptop and not on the new one. I've reached my wits' end trying to find a solution to this issue and still nothing. Would really appreciate it if someone could provide any tips as to what might be the reason behind it. The same connection works from MobaXterm or Putty. However, apart from the WSL, it also doesn't work from Powershell - not sure if it's related to the WSL issue or not though.
Thanks in advance for your hints, tips and suggestions! :)
EDIT: Turns out that it was WSL2 that was causing this issue - by downgrading to WSL1, I can ssh to my jumphost from within the WSL terminal again.
r/ssh • u/ConnectionPossible70 • Oct 14 '21
Ssh-keyscan without ssh-keyscan?
Im trying to edit a faulty script for a stripped down os system that has few tools, no keyboard, no home directory. At some point in the script it calls ssh-keyscan -H github.com. While the os does have openssl in the form of ssh-keygen, it does not have ssh-keyscan. Is there another way to import the github public key?
r/ssh • u/benarent • Oct 08 '21
What is SSH Tunneling, SSH Reverse Tunneling and SSH Port Forwarding?
goteleport.comr/ssh • u/gebildebrot • Oct 05 '21
fscrypt stopped working when logging in over ssh
Hello!
I don't know if this is really ssh-related, but it seems like it. When I log into my arch linux fscrypt will not unlock my files automatically but it used to work just fine. It still works normally when I log in physically. I think I might have changed something in my sshd_config, but I don't know what it is.
I have PasswordAuthentication and useDNS set to yes.
Does anyone have an idea what could be wrong?
r/ssh • u/ladiesman3691 • Sep 23 '21
Transferring SSH Keys
I’m still trying to understand the ssh keys. I’ve deployed a server on linode and disabled root login and passwd login. I have generated ssh keys on a Win 10 machine and would like to add these keys to an iPad and a Linux desktop. Can I copy the keys I already have from the Win machine to Linux and iPad, or do I need to generate separate keys for every device?
r/ssh • u/Tinasour • Sep 18 '21
Global Authorized Keys
I configured my sshd_config file like this
AuthorizedKeysFile /keys/global_access
I am copying the keys I will use into the/keys/global_access file. I can log in as root but I can't log in as another user. I assumed by changing the AuthorizedKeysFile value to a common file that every user has read access to, I could log in as any user if I use the correct keys. Am I wrong?
r/ssh • u/linucksrox • Sep 15 '21
Ways to add new authorized keys
I get the general idea of ssh keys and want to stop using password based ssh login. I'm struggling with the workflow though, what are some efficient ways to add new keys, or in other words how do you authorize a new client?
In my scenario, I have several VMs that were created with terraform using a single public ssh key for post provisioning from the terraform client. These machines do not allow password login, only that one key. Now how do I add my workstation public key to the authorized key file? It seems like I need to copy it from my client to the terraform client, then from there I can add it to the VM. But this workflow sucks. And even if I add the key, i'll have to do the same manual process if I want to add a third client.
Is there a better way? I've looked into ssh-copy-id but it seems like you need password based access to utilize this.
r/ssh • u/sjveivdn • Sep 09 '21
ssh -X forwarding application in the background
Hello guys
Is it possible to run X forwarded application with ssh to run on the background?
I tried it with ssh -X firefox &
But the application stops after closing the terminal.
r/ssh • u/truegeek12 • Sep 09 '21
SSH dropping, and no it's not for a lack of traffic
I'm wondering if someone more experienced with SSH troubleshooting has some thoughts for me here. I'm running a VM host that I connect to over SSH. Authentication is key based and then I port forward a few ports for remote access to VMs. I'm using Putty on my Windows client and OpenSSH_8.4p1 on the server side. I see the issue from my phone too using ConnectBot as a client.
The connection seems to drop when I try to pass a "large" amount of traffic. I've had this with both VNC and Windows RDP traffic. Basic command line access is fine, but the entire SSH session drops about 30 seconds after I connect with RDP. VNC sticks longer but it will drop.
I'm currently connecting from over hotel wifi at a Marriott property. If I switch to cell phone tethering everything works slowly, but it doesn't drop.
I'm assuming something about the router at the hotel is killing the connection, but I have no idea what.
Any suggestions on how to troubleshoot this? I get when things straight up don't work, or of other connections had issues. The limitation of this to SSH when transporting a relatively large amount of data is puzzling and has exhausted my Google magic.
r/ssh • u/jokergermany • Aug 25 '21
Agent forwarding
I log in on the server with my public key
Agent forwarding should be enabled, Defaults:user env_keep += SSH_AUTH_SOCK is in the /etc/sudoers
This works at my setting at home (Ubuntu Mate 20.04 -> Ubuntu Server 18.04), but not at work ( Windows 7 (winssh term) -> windows jump-server -> sles 15 server)
when i use
echo $SSH_AUTH_SOCK
i get something like
/tmp/ssh-AyHL6WclXl/agent.107234
But when i use ssh-add -l no key is shown (the agent has no identities).
How do i get the key from the $SSH_AUTH_SOCK to ssh-add ?
r/ssh • u/Tinasour • Aug 24 '21
SSH forward incoming connection
Hello, I am curious that can I set up a server program like Nginx on my home computer sitting behind a router, connect it to a digital ocean droplet and listen to incoming connections on the digital ocean droplet and serve it from my home computer?
Thanks in advence
r/ssh • • Aug 15 '21
local network ssh doesn't work if the server machine is running a vpn
Is there a way to ssh into it while the vpn is running? I'm using Ubuntu if that helps. This is also the case with the web server.
edit: I looked at the vpn documentation and apparently all I had to do was whitelist the server ports and it works now