Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would like to manage Minecraft server by using built in rcon.
Problem is that the server doesn't return content.
open putty -> set address -> set port -> select ssh -> click open -> console opens, but its empty & i can't do anything.
The weird thing is that:
1. ports are open
2. in putty log shows this: Connecting to xxx.xxx.xxx.xxx port xxxxx
3. minecraft console inform that im connected to the rcon
so it looks that I'm connected, but nothing shows in putty console.
I tried this query tool and its work fine. If this tool can, why putty can't?
Thnx for any help.
You could try mcrcon which is specifically designed for Minecraft remote connections. Its quite easy to use and it supports bukkit console colors too.
Description from the website :
Description
Mcrcon is powerful IPv6 compliant minecraft rcon client with bukkit coloring support. It is well suited for remote administration and to be used as part of automated server maintenance scripts. Does not trigger "IO: Broken pipe" or "IO: Connection reset" spam bug on server side.
Precompiled binaries available for Windows (x86), Linux (x86) and Mac OS X (x86 / x86-64).
Features
IPv6 support.
Interactive terminal mode.
Support for Bukkit coloring on Windows and sh compatible shells.
Send multiple commands in one command line.
Silent mode. Does not print rcon output.
Does not cause "IO: Connection reset" spam on server side.
Designed to be used as part of the toolchain in server maintenance scipts.
Program homepage on Bukkit forums.
RCON is a specific protocol in the same way that SSH and Telnet are their own protocols. When you open a connection to Minecraft (or any application) running RCON - you need to talk RCON and not SSH / HTTP / Telnet.
You're currently (or were) trying to talk SSH to RCON, which won't work. If you change Putty to RAW mode, you could begin having a dialog with your Minecraft server, if you format your data packet correctly.
The Valve protocol is explained here
Depending on what your end goal is, there are protocol wrappers for various programming languages out there... Java, PHP, .NET - only a Google away
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I had the idea for an in-browser ssh client, but i couldnt find any detailed explanation on how to write a SSH client. I tried looking it up but i couldnt find anything(Most results were about Putty or rankings of clients).
One idea would be to write an express app on the server that just executes the command it gets by the URL paramater or something else, but
it wouldnt be very secure i guess
i got curious
I think it works similarly to a websocket. First you send a normal http request or something and then you try to "upgrade" the request to a ssh tunnel
How does http/ssh protocol work? couldnt help
Edit:
Any Keywords or links to articles about how to code your own SSH Client or server would help
Thanks
You may just tunnel your ssh connection through Web Socket.
The problems are how you build the functionality of ssh client if you want ssh connections start from local users.
To develop the client in browser(meanwhile in a site), the most works can only be done by JavaScript.
However, because of secure problems, JavaScript has lots of limits in contrast with normal local programs.
The another way you provide that execute commands on server is surely easy to do, but the problem is : how can I trust the web application and the server as I need to provide my private information?
If I can use mature ssh technology to 100% ensure my security, how do we make people believe that the ssh web application is totally safe and willing to use it?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am using PuTTY to connect to an intermediate Linux based server. On that server I use ssh to connect to the (Linux based) server I try to target. On that server I want to run a program, but I have to send it to that inner server from my PC. A direct connection is not possible.
At the moment I use PSFTP to the intermediate server and PuTTY+sftp from the intermediate server to the inner server to send the file, but this takes a lot of work to do everytime.
Is there a way to use FileZilla to set up an SFTP connection to the inner server through the intermediate server?
So in stead of:
PSFTP: PC -> user#intermediate
PuTTY: PC -> user#intermediate
sftp: user#intermediate -> user#inner
I want:
FileZilla: PC -> intermediate -> user#inner
You can setup an SSH tunnel (aka port forwarding) using PuTTY from the intermediate server to the target server and connect with FileZilla to the tunnel.
See details on port forwarding in PuTTY.
Or see a specific guide for setting up port forwarding to tunnel file transfer client (WinSCP particularly, though you can apply it to FileZilla easily).
Actually, WinSCP SFTP client has a (single step) tunneling functionality built in. So, with WinSCP, it is very easy to do what you ask for. See the Tunnel page of its Advanced Site Settings dialog.
(I'm the author of WinSCP)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to log in to my computer at work through cyberduck.
I can ssh into the computer just fine but I must first SSH into the central system, then ssh from there into my computer.
Is there a way to allow Cyberduck to ssh into my work computer, i.e. ssh twice at once?
You can use e.g. PuTTY to set up the port forwarding, also called an SSH tunneling (for purposes such as yours).
See https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter3.html#using-port-forwarding
Alternatively you can use an SFTP client that supports this natively, e.g. WinSCP.
There's a guide for this here:
https://winscp.net/eng/docs/guide_tunnel
Note that aside from instructions, how to do this using WinSCP native tunneling functionality (section Section up tunnel in WinSCP), the guide also shows, how to tunnel WinSCP via PuTTY (section Section up tunnel using PuTTY for SFTP/SCP session). So if you insist on using Cyberduck, you can just replace WinSCP with Cyberduck in the guide.
(I'm the author of WinSCP)
Yes, you can configure local port forwarding. With it, localhost's socket will be forwarded to your work computer so middle SSH server will work as proxy.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would like to transfer files between my desktop (Ubuntu) and an embedded Linux. The problem is that the only communication between the desktop and the embedded system is using the serial port. This same serial port is used to login from the desktop into the embedded system using sh (over screen or putty).
If it helps, the embedded system is the AT91SAM9G20EK running Angstrom.
I appreciate any suggestions.
you may want to try one of the x/y/z-modem family protocols.
A free package is here:
http://ohse.de/uwe/software/lrzsz.html
And it is very likely that you also have a package for Angstrom.
To transfer a file, when connected to the embedded device you just start the program rz on the embedded linux.
Then, in the terminal on your development machine you start the zmodem protocol and send the file. Once the transfer is done, the rz program on the target machine stops, and you'll find the file in the current directory.
You might use PPP to create a TCP/IP connection over the serial link which will then allow multiple TCP/IP application layer protocols to be used simultaneously and transparently including FTP, Telnet, rsh or ssh
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to embark on a project for a CS class.
Can anyone provide insight on how to write a tool that will map out a network and state device info, IP info, open ports, etc.
I will be using OS X.
There's a few things you can use to discover the nodes on a network.
SNMP will help detect a few different network devices. Broadcasting an SNMP get request for sysName.0 will give you results from anything that responds to SNMP (even if they do not have a value for the OID). Some may be printers, some may be servers, some may be NAS etc. sysDescr.0 can also be used although for many network devices (in my experience) it returns the same value as sysName.0. Mac OS X comes with the NetSNMP libraries. Once you have received responses from SNMP agents, you can then send extra SNMP requests to further determine details about the device. There are human readable files that explain these in detail in /usr/share/snmp/mibs.
You can use a broadcast ping (your application will require root privileges to give you raw access to the Internet Protocol for constructing a broadcast ping packet, or a ping packet in general). Just broadcast a few packets and wait for replies. The source code to BSD's ping utility used in Mac OS X can be found at Apple's website. The ping executable is usually installed with owner root and with the setuid bit, meaning that the ping executable is run as root even when invoked by a non-root user (this is why non-root users can use ping). You'll notice though that in ping's source code it only creates the socket as root and then immediately drops its root privileges.
Zeroconf/Bonjour will also help. Have a look at Core Foundation's CFNetServices or Foundation's NSNetServices. Mac systems can be configured to publish themselves very easily. There are also Windows and Linux implementations but of course, these need to actually be running on the network devices before you can detect them with your program.
In order to determine what ports are open, you can simply run a loop over the desired port range and attempt to make a connection. Keep in mind though that many servers consider this an attack and will drop packets and perhaps even permanently blacklist your IP. Once you have made a successful TCP connection, you can look up the port number in the /etc/services file to determine the name of the service. This can be done using the POSIX function getnameinfo.