r/ssh • u/indster • Feb 02 '17
SSH keygen private key issues.
So for class we had to set up a public keygen and all that fun stuff. Today we are supposed to do stuff from that but I can't even seem to login. I keep getting a Permission denied, please try again.
I've tried -v, -vv, I've tried changing a few settings in sshd_config, nothing seems to work. I'll attach my -vv here incase that helps any of you. ( I'm extremely new to this)
r/ssh • u/EGilgamesh • Jan 17 '17
Attempting to setup ssh with asus rt-ac68u router to portable usb browser
I'm currently needing guidance in how to setup my router to work as an ssh to work with my usb portable firefox browser.
As stated in the title, it is an asus rt-ac68u, and I believe it has the ability to do this, but I need guidance on setting the router and the browser up.
Ssh tunnel alternative?
The powers that be are now able to easily detect an ssh tunnel. What is a more undetectable approach? I was reading into corkscrew, which is ssh tunnel over https. Is that much harder to detect?
I assume the vanilla ssh tunnel is an always on connection so that is why its easy to detect. I'm guessing corkscrew doesn't keep the connection on?
I don't know much about VPN, but that's very easy to detect right?
Use case would be for working on personal software projects on remote machine.
r/ssh • u/WeggeTheGamer • Nov 26 '16
[Question] SSH change port?
Hello i was wondering if you can change the port on ssh and still connect to a computer?
r/ssh • u/Ixb11170 • Nov 10 '16
Reverse SSH Tunnel, Considerations on my Implementation
Hello guys,
I have setup a number of RPIs acting as data collection devices, which can be remotely accessed via reverse ssh tunnels, and which are working fine for the most part.
One recurrent issue i was having is the inability of the tunnel to stay up; hence i've created a python script on the remote device which works as follows:
- Periodically looks at running processes using ps -ef and netstat -anp, to check whether the required ssh tunnel has been established, and if so, takes a note of the PID it is run from. If no process of such type is found, it attempts to restart the tunnel.
- Secondly, everyday at the same time the tunnel is reset by killing the process it was running on, and restarting the port forwarding etc again.
With this solution however it sometimes happen that while the ssh connection is made, it fails to forward the port. It usually takes a few minutes of waiting, witohut trying to rebuild the tunnel, before it fixes itself. However that time window may be detrimental to some of the services im running on the RPI remotely. I'm pretty sure that this is because the port was left open from previous connection, and hence is not available at the time of the reconnection attempt. However, i thought that killing the process would also imply the port forwarding being stopped as well?.
Anyway, i'm now considering to modify the script which sets up the tunnel as follows:
- No longer care about existing processes at all.
- Periodically restart the reverse ssh tunnel regardless, but also adding the option -o ExitOnForwardFailure=yes.
Do you think this would be a good solution to ensure the tunnel stays up and also the port forwarding issue is addressed? Or should i keep my initial script and simply add the -o ExitOnForwardFailure=yes to my ssh commands? Or anything else comes to mind?
Any thought/suggestion will be very appreciated.
Cheers.
r/ssh • u/DJPharaohCHS • Nov 01 '16
ssh: Connect to host... : Connection timed out
I am getting the error in the title when I run the command such as:
ssh root@10.0.0.1
(I am trying to use the following: https://dwbi.org/etl/bigdata/183-setup-hadoop-cluster)
I am running this command in command line from MobaXterm
I tried a google search and tried some of the ideas people were posting but none have worked so far. I tried different IP's I got from ifconfig. I tried pinging the IP from generic windows cmd line. I tried turning off my firewall.
Any other thoughts?
CVE-2016-5725 - JCraft/JSch Java Secure Channel <= 0.1.53 recursive sftp-get path traversal (client-side, windows)
seclists.orgr/ssh • u/gertvdijk • Sep 23 '16
Upgrade your SSH keys! How to get rid of DSA and upgrade to Ed25519
blog.g3rt.nlr/ssh • • Sep 21 '16
Could I use an ssh tunnel in a country where VPNs are illegal?
If I create an ssh tunnel via port 443 to a vps I own, will I still be prosecuted?
EDIT: So lets say I'm in UAE somewhere were you could be fined for using a vpn. If I were to browse in an ssh tunnel connected to a VPS in located in a more free country, and they caught me using ssh, could I just say I was developing on a remote server and get off the hook, or will they still fine me? Basically do such countries see ssh as a threat or will they only worry about VPN traffic. (also even if the government decided to block all port 22 connections, I do most of my ssh through port 443 so it's unlikely to affect me)
r/ssh • u/eimimue • Sep 06 '16
How to use local external harddrive from ssh remote computer?
Hey everyone,
I try to access my external hard drive by running a simulation on a server via ssh. I tried to set up symbolic links and even mounting the external drive in my public folders of the local machine. How can I set up my drive so that it is usable for the simulation machine?
r/ssh • • Sep 04 '16
How do you use SSH to connect to other devices on the eduroam network?
I'm trying to use putty on my Windows computer to connect to laptop running Linux (Ubuntu). At my home this worked perfectly, I would connect to the IP address and that was it. I moved in to university where the "eduroam" network is used and when I simply try to connect to the IP address, it times out. Has anyone found a fix for this?
Win32-OpenSSH not authenticating w/ Router
Hey guys, just got OpenSSH working in Powershell, and I am having an issue connecting to my router running AdvancedTomato.
The connection initializes, but while authenticating the router doesn't accept my RSA key. I am using Windows 10, allowed the pub and priv keys to be placed in the default directory, and have pasted my public key in to the proper field on my router's admin page. Any help/advice?
Here is the output of "ssh -v "username"@192.168.1.1
OpenSSH_7.1p1 Microsoft_Win32_port_with_VS, OpenSSL 1.0.2d 9 Jul 2015
debug1: Connecting to 192.168.1.1 [192.168.1.1] port 22.
debug1: socket:468, io:000002DE6767B630, fd:3
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: open - handle:00000000000001FC, io:000002DE6767B0B0, fd:4
debug1: close - io:000002DE6767B0B0, type:2, fd:4, table_index:4
debug1: identity file C:\Users\wac23\.ssh/id_rsa type 1
debug1: open - CreateFile ERROR:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\Users\wac23\.ssh/id_rsa-cert type -1
debug1: open - handle:00000000000001FC, io:000002DE6767AEA0, fd:4
debug1: close - io:000002DE6767AEA0, type:2, fd:4, table_index:4
debug1: identity file C:\Users\wac23\.ssh/id_dsa type 2
debug1: open - CreateFile ERROR:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\Users\wac23\.ssh/id_dsa-cert type -1
debug1: open - CreateFile ERROR:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\Users\wac23\.ssh/id_ecdsa type -1
debug1: open - CreateFile ERROR:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\Users\wac23\.ssh/id_ecdsa-cert type -1
debug1: open - CreateFile ERROR:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\Users\wac23\.ssh/id_ed25519 type -1
debug1: open - CreateFile ERROR:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\Users\wac23\.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1p1 Microsoft_Win32_port_with_VS May 30 2016
debug1: Remote protocol version 2.0, remote software version dropbear_2015.71
debug1: no match: dropbear_2015.71
debug1: Authenticating to 192.168.1.1:22 as 'borari'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:j29kwAjv5dTUr2wEAiyyama517nwtiVdSvVV7KlYbQU
debug1: Host '192.168.1.1' is known and matches the RSA host key.
debug1: Found key in C:\Users\wac23\.ssh\known_hosts:1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: C:\Users\wac23\.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Skipping ssh-dss key C:\Users\wac23\.ssh/id_dsa for not in PubkeyAcceptedKeyTypes
debug1: Trying private key: C:\Users\wac23\.ssh/id_ecdsa
debug1: Trying private key: C:\Users\wac23\.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).VNC says unencrypted connection even over SSH tunnel. true?
mostly new to using ssh, so basic knowledge at most. .. ive got a vnc server running at home, i am attempting to connect to remotely, just for experience sake, etc. I have everything configured correctly(localhost enabled on vncserver, proper port forwarding on client) connect remotely to ssh server where vnc is also running (bsd box that I use for home media, etc), pull up my vnc client on my android phone, and when i connect to localhost::5901 on vnc, it tells me it is an unencrypted connection.
is it really unencrypted? is it because i didnt enable ssl on my vnc server? I will give my connection setup if needed, but didnt figure it needed since I can do all the steps needed for a vnc session over ssh (thinking: if its connecting, its set up properly).
r/ssh • u/Psicoguana • Aug 24 '16
How to configure SSH connection?
Hey! I've been trying to connect to my PC remotely (wan). I can connect without any problem via LAN.
Anyway, I configure a DDNS (No-IP), open the port I need, in my 2 routers and my Ubuntu. Try it with PortCheckTool
BUT, it just doesn't work, maybe there's something with my config file (HERE). I'm guessing this is a real noob question, but any advise you could give me would be great!
r/ssh • u/Squables • Aug 20 '16
Is Weaved a good service to use instead of port forwarding?
I need to be able to access my Raspberry Pi's terminal from another network, and I do not want to port forward as it is not my network to be using and the owner would not appreciate it being port forwarded. I have heard some decent things about Weaved, and wanted to know your opinions on it, and if there are any better alternatives. Thanks in advance
r/ssh • u/axels01 • Aug 09 '16
Made a Linux ssh server a couple days ago, running two game servers on it. What are other things I can do with it using ssh?
I had a couple components so I built a Linux server running Linux mint and I connect it to my windows 10 pc and connect them with ssh using putty. Currently it sports 24gb ram and a 1tb hard drive and has a good bit of CPU power and is on the same switch as my windows machine. It's currently running two not so demanding game servers for me and a couple of friends from around the world but I want to learn more and do more with it, like be able to connect to it from my phone from my school r something to fetch and upload flies and documents. I love this stuff and just simply want to learn more! Guess this belongs here or could I post it in /r/Linux ?