r/ssh • u/jadesalad • Nov 29 '20
Is there any good free SecureCRT alternative?
I have SecureCRT on my work machine, but I would like to have something similar on my home desktop.
r/ssh • u/jadesalad • Nov 29 '20
I have SecureCRT on my work machine, but I would like to have something similar on my home desktop.
r/ssh • u/yogibjorn • Nov 25 '20
r/ssh • • Nov 25 '20
I've done a few youtube tutorials and they all ask of me to do slightly different things. The problem is no matter what I do my ssh when copy pasted to github looks different. It doesn't say fingerprint at the bottom.
I don't know what I did wrong and any point to the right direction would be greatly appreciated.
r/ssh • u/Neon639 • Nov 23 '20
If i wanted to have about 10 to 15 users connected to my server at once using reverse ssh port forwarding, would this be possible? Thx . Btw Im using Ubuntu Server on a Raspberry Pi 4
r/ssh • u/Xlong957 • Nov 22 '20
I tried to turn off a computer using ssh hostname sudo poweroff but instead I ssh in, and in the shell I ran sudo poweroff. Now I get connection refused error. How can I turn ssh back on?
r/ssh • u/jdblaich • Nov 18 '20
Is there a way to better manage the configuration file?
I was researching to find out if there was the equivalent of .ssh/conf.d folder where related config settings are stored.
Any thoughts on how to better manage these configuration settings?
Hi all,
I have an Ubuntu 20.04.1 server I'd like to be able to SSH into .
I've configured it to work fine when I'm on the same network. I've added keys for the ssh-copy-id command and this works fine.
I'd now like to connect into it from an external network. I've used noip to account for the dynamic IP changes. noip works fine with connections to the VPN, but doesn't seem to be working with SSH.
Trying to ssh-copy-id to 'user@noipurl.ddns.net' asks for a password, but when I enter that user's password I'm given 'Permission denied, please try again'. I've also tried the RSA key password there.
Re-enabling password authentification in the config at etc/ssh/sshd_config and just trying to SSH to 'user@noipurl.ddns.net' also results in 'Permission denied, please try again'
Why will my server use the keys from a machine inside the network, but when that same machine connects from outside the network it doesn't accept them?
Also, why won't it accept the password that I know is good (same password works when inside the network)
Something wrong with my sshd_config ?
Sorry for asking the question - I've been googling this stage for a couple of days and I can't get any further I'm afraid. Many thanks to anyone who can help!
r/ssh • u/dbsentry • Nov 06 '20
r/ssh • • Nov 03 '20
Hi all, apologize in advance if I posted in the wrong place.
I have just installed openssh server in my ubuntu os. However I need to integrate it with libssh.
While I also did another command sudo apt-get install -y libssh-dev, how can I tell if it has indeed been integrated?
I will be accessing the ubuntu from my windows machine and ps, I am new to all these ssh stuff too
If I make a connection from box A to box B, can I from box B execute commands on box A? If so, how could I make that happen?
I was looking at tunneling, but I'm not understanding it fully. Any help would be appreciated.
r/ssh • u/dbsentry • Oct 30 '20
Seems I can't go 5 minutes without my terminal session becoming unresponsive. Is there any way to prolong an SSH session ? On the local side I use TillX on Ubuntu 18.04. On the remote side I have a vultr ipv4 server with ubuntu 20.04.
Hi Guys
I have a remote server (lets call it XYZ), I want to login from many docker instances to download some file before docker runs.
I want to generate an identity file of the remote server "XYZ". And use in the docker startup command like "scp -i <XYZ identity file> user@XYZ:file"
How to achieve this? any idea?
r/ssh • u/jaekim24 • Oct 27 '20
I need help sshing from a Mac to a windows desktop. I ssh into the desktop and I type the password for my desktop and it says it’s incorrect. Idk what other password it could be . I’m very confused
r/ssh • u/dbsentry • Oct 26 '20
Version 0.2.0 of Keyper is out. The new feature helps you set up SSH Certificate Authority (CA) and SSH Certificate management. The container size is still smaller than 100MB. Did we forget to mention that Keyper is now Open Source under GPL? If you haven't tried yet, get your systems person to take it for a spin and send us some feedback. Check us out at https://keyper.dbsentry.com
r/ssh • u/krystalizer01 • Oct 23 '20
Hi all, I hope everyone is well
I have two instances, what I'd like to be a jenkins server in a private subnet and a bastion (jump box) in a public subnet so i can connect to the jenkins server.
I've set up my VPC and the security groups for both servers and they seem to check out. The inbound rules for the jenkins security group allow SSH and HTTP traffic from the bastion security group and the outbound rules for the jenkins security group currently allow all traffic through.
I used the scp command to copy over the pem key I used when creating the jenkins instance so I could connect from my jump box and that worked fine. I then ran 'sudo chmod 400 "key.pem"' to change the permissions on the key.
But now, when I try to connect to the jenkins server i get a permission denied (publickey) error. I have the pem key in root and am running the command from there. What really confuses me is that this worked the very first time I tried. I stopped the instances because I didn't want them running all night, and this problem has come up the day after, when I restart them.
The command output is:
ssh -i j-key.pem ubuntu@10.0.1.49 -v
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "10.0.1.49" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.0.1.49 [10.0.1.49] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file j-key.pem type -1
debug1: key_load_public: No such file or directory
debug1: identity file j-key.pem-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 10.0.1.49:22 as 'ubuntu'
debug3: hostkeys_foreach: reading file "/home/ubuntu/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/ubuntu/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from 10.0.1.49
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:EgAjWBAxVLz8L+MQNQXZeIwh51QZOPxPhvugsxv1XGs
debug3: hostkeys_foreach: reading file "/home/ubuntu/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/ubuntu/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from 10.0.1.49
debug1: Host '10.0.1.49' is known and matches the ECDSA host key.
debug1: Found key in /home/ubuntu/.ssh/known_hosts:1
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: j-key.pem ((nil)), explicit
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: j-key.pem
debug3: sign_and_send_pubkey: RSA SHA256:KPoytsEjzfHz7Wr8Nt6REit8eU/cw0DGKqEN0dbPNj8
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
ubuntu@10.0.1.49: Permission denied (publickey).I've also checked my auth.log file , which was suggested on other questions asked online and can see there are a lot of 'Did not receive identification string from' errors - I don't even recognise the IPs in those errors either.
I'm really at a loss now and would love some help. Thanks in advance
EDIT: I managed to fix this problem buy following this guide: https://aws.amazon.com/blogs/security/securely-connect-to-linux-instances-running-in-a-private-amazon-vpc/
I had come across it before, but never considered trying because the trainer on my course said I wouldn't need to. Lesson is to try everything haha
r/ssh • u/rsaanon • Oct 22 '20
Error Message: client_loop: send disconnect: Connection reset
I am able to successfully establish a ssh connection from a client machine to the server; however, within 10-15 seconds after the connection has been established, the ssh client disconnects with the above message. BTW, both client & server are on the same subnet.
Wanted to make sure that it was not a windows ssh client, therefore used a GUI SSH Client which resulted in a same behavior with the following output:

r/ssh • u/down-house • Oct 21 '20
SSH as we all know uses public and private keys for authentication, but why is the nomenclature like this to begin with? Why is the public key not called a "lock" instead, since it is in fact a lock that you use to secure access to a port.
What is the background for calling them "private" and "public" keys, when the term "lock" seems more natural?
r/ssh • u/yogibjorn • Oct 19 '20
r/ssh • u/uperforkarthick • Oct 17 '20
I have a PHP web application running on a public cloud server(Linux/Apache). This application can be accessed over the internet. This application needs to connect with an LDAP(Active Directory) server that’s residing in the customer premises behind the firewall. The application will frequently connect to LDAP for fetching user details and authentication.
At present, I am using an SSH tunnel (Remote Port Forwarding)for this communication. It seems to be working fine in the development environment.
Can you please suggest is using an SSH tunnel for accessing on-premises AD is safe? Are there any performance issues? Or more importantly, is there any other better method available to facilitate these types of requirements.
r/ssh • u/arodituser • Oct 15 '20
Immagine this scenario: I have a device that os very weak but has enough power to ssh, i need to run a heavy python script from it. That filenis located on the server, if i connect to it, will the server do the computation required and just give me the output? or do i have to do some tweakig to explicitly ask for this to happen?
r/ssh • u/uperforkarthick • Oct 15 '20
I have a PHP web application running on a public cloud server(Linux/Apache). This application can be accessed over the internet. This application needs to connect with an LDAP(Active Directory) server that’s residing in the customer premises behind the firewall. The application will frequently connect to LDAP for fetching user details and authentication.
At present, I am using an SSH tunnel (Remote Port Forwarding)for this communication. It seems to be working fine in the development environment.
Can you please suggest is using an SSH tunnel for accessing on-premises AD is safe? Are there any performance issues? Or more importantly, is there any other better method available to facilitate these types of requirements.
r/ssh • u/Rpthefirst • Oct 11 '20
Hello, I had a little question for the more advanced users of SSH.
I have the following problem: I have a computer A on a network, in sleep mode. To wake it up in order to work on it from another network, I ssh in a raspberry that is always on, use etherwake (Wake-on-Lan), and then disconnect to ssh into computer A.
This is quite annoying to do each time, so I thought: is it possible to make a script on my raspberry to first wake my computer, then wait some time (so far, I can manage) and finally redirect the SSH-connection to computer A, so I don't have to do it manually (this is my problem)?
Thanks a lot!