Netcat And Nc Commands Not Working In Red Hat Linux 6.4

Hello All,

I am trying to check a tcp/udp port from one server to another server using netcat and nc commands. As there is no manual entry in the system I am not able to check it.

Please let me know any commands are available for checking the port from one server to another server


Similar Content



File Copy With Netcat Missing

Hi everyone

long story short

i copied a file using netcat from one server to another but the file is not in the location it should be.

Curently i have a "find" command running in order to get the file but the disk is 3Tb and will take ages till it finds it.

Is there any other way i could figure out where this file is?

Can i repeat the copy procedure with netcat and while the copy is in progress to find out where the file is? maybe with some sort of "lsof"

Maybe verbosing netcat?

Thanks

An Older Benchmark Utility?

Am running a P4 @ 2.66 with Hardy Heron 8.04.4 .
Have googled a decent amount of commands for terminal to find out that alone.
Saw posts from 2004&9 that said to use Mysql server or Postgresql server to get the benchmark packages to cook the box.
I am going to try and read everything through commands, then decide on new distro.
1st Mint looks easy enduser. Ubuntu is looking kinda' commercial.
Ubuntu still looks like the distro to follow.
If you want to tell me a package that the synaptic will load and let me use, I thank you. All the us.ubuntu.olderversions. server addresses are worthless.
THX again
Paul

Sending SMB Client Commands Through Shell Script

Hello.

I have a shell script, which I am using to access the SMB Client:

Code:
#!/bin/bash
cd /home/username
smbclient //link/to/server$ password -W domain -U username
recurse
prompt
mput baclupfiles
exit

Right now, the script runs, accesses the server, and then asks for a manual input of the commands.

Can someone show me how to get the commands:
Code:
recurse, prompt, mput baclupfiles and exit

to be run by the shell script please?

Reverse Nat Ssh Tunnel - Open More That One Port?

I will be setting up a few raspberry pi's in various locations, and they will be creating reverse nat ssh tunnels to my ssh server.

I need to set up a monitoring server at the server's location to monitor the raspberry pi's through the ssh server. The monitoring agent that will be installed on the raspberry pi's is communicating with the monitoring server on port 4700.

My question is:

Since I am using reverse nat ssh tunnels to connect on the ssh server, I am guessing that port 4700 will not be opened. If this is true, is there a way to also open port 4700 in that tunnel, so the monitoring server can access the remote agent?

Thanks

Need Commands For The Following Scenario

scenario: two servers A and B are connected together
server A can not send a file name F directly to server B
server B can send anything to server A

How can we copy or move the file F from server A TO B with all file permissions

Thanks for your kind help

OS Cannot Be Loaded Without Keyboard Because Of Grub

Hello to everyone!

I was working on a linux server before few weeks. There was a grub/keyboard issue. If no keyboard is attached (ps port) the grub isn't loading the operating system. If the keyboard is attached the grub is loading the operating system by default without any keyboard interaction.

The difference is only that there is a keyboard attached. Thats all.

I was searching on the web and one thing came along: "turn on/off 'stop on errors' feature in your bios.". Maybe its this, but tonight I'm not able to check if its this becuase the server is in a remote location.

However I would like to hear what you think of this problem.

Have a good time!

Iptables Question

Hi,

So, I am learning meteor.js and signed up for a (cheap, i.e no support) VPS to host my Meteor app. Everything is running fine but I am trying to understand better how Linux works so here is my question:

I am running CentOS 7 on the VPS but it still uses iptables for its firewall.

I had to enable port 80 to access the web server. However, if I reboot the server, it stops working until I do
Code:
iptables -F

Then everything works. But I am thinking that -F might not be the best thing. I have changed the default SSH port from 22 to something else and that also works but I don't think I ever added it to the iptables rules.

If I do a port scan, the new SSH port is indicated as open as well as port 80 but others are closed as they are supposed to be.

Any idea what is doing on behind the scenes that requires iptables -F for the web access to work properly and if I shouldn't be doing iptables -F (I have it in the rc.local file), what is the right way of doing it?

(BTW, I am computer literate but not that familiar with Linux, which I am trying to learn now.)


Kamal

Check If A Tunnel Is Up - If Not, Log It.

I am using the following command to establish a reverse ssh tunnel with an ssh server

Code:
ssh root@my.hostname.here -R 5001:localhost:22

The server is rebooted every night and the tunnel is established automatically on reboot successfully every time.

What I need to do, is run a check, and if for some reason the tunnel is not established, I want to log it in a log file.

How can I reliably check if the tunnel is up or not?
Keep in mind that other ssh sessions might be active at the time, so I don't want the checking method to pick up any of those successful sessions. It has to check only the tunnel.

Thanks

How To Check Which Interfacce Port Has Cable Connected

Hi

We are going to move some servers from one location to another. How to verify whether the cables are connected to the right interface port?

like one server has eth0 active and eth1 is down. now if the tech guys connect the cable on eth1 port then how to know that

Is it /sys/class/net/eth1 and look for carrier or there is a better way ?

thanks in advance

RHEL 7: No Output From Ip Commands

Hi,

Apologies if this is in the wrong forum, wasn't sure which was most appropriate...

I've built a Redhat 7 VM from an ISO and I've carried out various configuration on it and for some reason when I now run ip commands (for examnple 'ip addr show') I no longer get any output on screen.

Example...
[root@rhel-7-xx2 ~]# ip addr show
[root@rhel-7-xx2 ~]#

Version I'm using is:
Red Hat Enterprise Linux Server release 7.0 (Maipo)

I built another server and had the same problem and managed to fix it by yum updating all packages so it looks like a package needs to be updated but not sure which one.

If I pipe the output to a text file I can see the output okay in the file.

I have a ticket open with Redhat but it's taking a while to troubleshoot with them so thought I'd see if anyone else had seen this in the meantime...

Thanks
James