I'm currently trying to bind a cmd shell in Windows using ncat with SSL in order to allow a Kali Linux computer to connect.
On the Windows computer, I run
ncat --exec cmd.exe --allow KaliLinux.computer -vnl PortNumber --ssl
On the Kali Linux computer, I then run
ncat -v Windows.computer PortNumber --ssl
I am then prompted on the Kali Linux terminal:
Ncat: Certificate verification failed (self signed certificate).
However, I am still greeted with the Windows CMD output.
On attempting to run any sort of command over this ncat connection, no response is retrieved from the Windows computer and looking at the CMD screen on the Windows computer reveals the connection has closed without any warning/errors.
If I attempt the same without the --ssl flag, the binding and connection works as intended.
My query is, how do I override the certificate verification failed notification or how do I create a valid and secure SSL connection such that the connection works?
Check if your SSL version in both your Windows VM and Kali Linux are compatible. ncat 7.60 doesn't support tls 1.2 anymore.
The other way around is to use OpenSSL instead of ncat on your Kali Linux (you can still use ncat in your Windows VM).
E.g. openssl s_client -connect 10.0.0.2:4444
Related
I am trying to connect to a redhat server from a macos client, using ssh and openvpn. Command line commands work fine (eg vim), but displays dont get displayed, eg while running firefox or gvim, and I get the error:
No protocol specified
E233: cannot open display
I did "xhost +" and "export XAUTHORITY=~/.Xauthority" on the macos client, and "export DISPLAY=:0.0" on the redhat server, but that did not solve the problem.
However, it is working when the client is ubuntu, so I guess the problem is on the macos client side.
BTW, when I run ssh after I did "xhost +", I get the warning:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Any suggestions?
Answer is given here: instead of doing "ssh -X", do "ssh -Y". This is the short solution (which worked for me on Catalina + XQuartz), other longer solutions are also provided at this link.
I am configuring my AWS CLI and I am trying to setup SSH. Whenever type in anything (I am just trying the default "aws-eb" I always get the error "To use this command, SSH must be installed on your local machine and available from the command line.".
Amazon says I must have ssh-keygen as well as SSH installed but I can't really find where to install SSH onto my computer.
I have installed OpenSSH Client and OpenSSH server through windows settings but that doesn't work. Can anyone help?
I could not find anything other than the command below but this did not work either. I need to allow an incoming telnet connection from a PC app to connect to my Mac. I know SSH is better but I have to have telnet to connect to my Mac OS. Does anyone know?
This is the only thing I found to allow the incoming telnet connection, however this did not work.
sudo launchctl load -w /System/Library/LaunchDaemons/telnet.plist
-Seth
According to apple support :
You can’t use Telnet to log in to your Mac.
see here
I have been a Windows user all my life and I just got a Mac recently. With Windows (puTTY), I have "SSHed" into a local Ubuntu Server dozens of times in the past. I attempted to perform the same steps with my Mac, but I am not able to make any significant progress. Can anyone provide a guide as to how to SSH into a local Ubuntu Server?
I have a clean installation of Ubuntu Server running right now. Here is a picture of when I do "ifconfig":
The steps that I have done previously are as follows:
Install openSSH Server
In terminal, "ssh anish#localhost"
Connection is timed out or my password is not accepted.
Change it to bridged in ur VM settings in virtual box and use ssh anish#inet
I am trying to login on my ubuntu server from windows pc using putty ssh but it says connection refused.
I am able lo login on ubuntu using command
$ ssh root#MY-IP-ADDRESS
not able to login using remote server.
Please Help me.
I was having the same issue and nothing was working for me to connect to ec2 linux instance from Windows 7. Here is how i was finally able to connect.
1.) Download puttygen.exe and create a .ppk file from your .pem file that you downloaded from amazon.
2.) Use FireSSH (plug-in for Firefox), put in your host name, use 'ubuntu' (minus the quotes) for the Login, leave password blank and enter the location of the .ppk you created from puttygen.exe
Note: Oddly enough i was not able to connect using putty.exe but the private key it generates works fine with FireSSH
Did you install openssh-server ?
aptitude install openssh-server
Then also check you don't have firewall running on your Ubuntu.