Sponsored Content
Operating Systems Linux Red Hat How to know which application is connecting to a remote host Post 302384173 by jarjarb on Monday 4th of January 2010 09:10:35 AM
Old 01-04-2010
try netstat -p
you have a source and destination ports and the application name (in my sample Xvnc)
a sample line would look like this:

tcp 0 0 localhost:32800 localhost:32799 ESTABLISHED 3353/Xvnc
tcp 0 0 host.some.domain.com:5905 host2.domain.com:3646 ESTABLISHED 12888/Xvnc

-J
 

10 More Discussions You Might Find Interesting

1. Solaris

How to delete the files from local host to remote host

Hi all, i am copying .gz files from production server to development server using "scp" command.my requirement is after copying .gz files i want to delete old .gz files(two days back) in development server from production server. like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Discussion started by: krishna176
3 Replies

2. Shell Programming and Scripting

Run a shell script from one host which connext to remote host and run the commands

I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies

3. Shell Programming and Scripting

running commands to remote host from centralized host

Gurus/Experts We have a centralized UNIX/Solaris server from where we can actually ssh to all other UNIX/Solaris servers...I need to write a script that reside on this centerlized server and do FileSystem monitoring (basically run df -h or -k) of other remote servers and then send an email to me... (6 Replies)
Discussion started by: anjum.suri
6 Replies

4. UNIX for Advanced & Expert Users

connecting through master ssh connection on intermediate host

Suppose host B does not allow public/private key authentication - only secureID authentication. I already have a master ssh connection from host A to host B. Host A does allow public/private key authentication. Is there any way to connect from host C to host B by way of the master ssh connection... (2 Replies)
Discussion started by: cpp6f
2 Replies

5. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

6. Solaris

Privacy Statement when connecting to solaris host

Hi All, I want to print a privacy statement for e.g. "Users must be authorized to login into this host" .... of this kind of message when the users tries to connect to a Solaris host. i.e. before the user key's in credentials. Is there any command that i can use to print this kind of... (1 Reply)
Discussion started by: sudharma
1 Replies

7. Shell Programming and Scripting

Connecting to remote host

Checking crontab job entry in 3 different hosts Hi Gurus, I am trying to connect to remote host from current host to check crontab entries. I have started like this ssh -n -l db2psp 205.191.156.17 ". ~/.profile >/dev/null 2>/dev/null; cd log ;ls | wc -l" I got this error ? ssh:... (1 Reply)
Discussion started by: rocking77
1 Replies

8. Shell Programming and Scripting

Pause processes in remote host and resume execution in another remote host

Hi, Given addresses of 2 remote machines, using a shell script is it possible to get the state of running processes in "src" stop all the processes in "src" exit out of "src" ssh into "dest" resume the state of executing processes captured in step 1 in "dest" Assumption: "src" is... (3 Replies)
Discussion started by: Saeya Darsan
3 Replies

9. UNIX for Dummies Questions & Answers

Why does SSH store the fingerprints of remote host when connecting for the first time?

I was wondering why does ssh store the fingerprints of remote host when connecting for the first time? I will appreciate a detailed response, can't figure it out. (2 Replies)
Discussion started by: ChiefGandalf
2 Replies

10. Shell Programming and Scripting

Check/get the exit status of a remote command executed on remote host through script

Geeks, Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s). Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
5 Replies
Xvnc(1) 							     TightVNC								   Xvnc(1)

NAME
Xvnc - an X server providing VNC connectivity SYNOPSIS
Xvnc [:display] [-geometry widthxheight] [-depth depth] [-pixelformat rgbNNN|bgrNNN] [-udpinputport port] [-rfbport port] [-rfbwait time] [-nocursor] [-rfbauth passwd-file] [-httpd dir] [-httpport port] [-deferupdate time] [-economictranslate] [-lazytight] [-desktop name] [-alwaysshared] [-nevershared] [-dontdisconnect] [-viewonly] [-localhost] [-interface ipaddr] [-inetd] [-compatiblekbd] [X- options...] DESCRIPTION
Xvnc is a VNC (Virtual Network Computing) server. It acts like an X server with a virtual display. The display can be seen by a VNC viewer application, which may be running on a different machine: see vncviewer(1). Xvnc is built inside the source code tree of XFree86, and shares many options with it. Normally, you don't need to start Xvnc manually; use the vncserver(1) wrapper script instead. This script sets reasonable defaults for Xvnc session, checks many error conditions etc. Please read the BUGS section if you plan to use VNC on an untrusted network. OPTIONS
Xvnc supports many standard X server options and a number of VNC-specific options. To see what standard X server options are supported, please look at the Xvnc -help output and read the Xserver(1) manual page for details on those options. The VNC-specific options are as follows: -geometry widthxheight Set desktop width and height. -depth depth Set the colour depth of the visual to provide, in bits per pixel. Must be a value between 8 and 32. -pixelformat rgbNNN|bgrNNN Set colour format for pixels representation. The viewer can do the conversion to any other pixel format, but it is faster if the depth and pixel format of the server is the same as the equivalent values on the viewer display. -udpinputport port UDP port for keyboard/pointer data. -rfbport port TCP port for RFB protocol. The RFB protocol is used for commnunication between VNC server and clients. -rfbwait time Maximum time, in milliseconds, to wait for an RFB client (VNC viewer). -nocursor Don't put up a pointer cursor on the desktop. -rfbauth passwd-file Use authentication on RFB protocol from the specified file. The passwd-file can be created using the vncpasswd(1) utility. -httpd dir Serve files via HTTP protocol from the specified directory. Normally, Java viewer classes are stored in such directory. -httpport port TCP port on which Xvnc should listen for incoming HTTP connections (to allow access to the desktop from any Java-capable browser). -deferupdate time Time in milliseconds, to defer screen updates (default 40). Deferring updates helps to coalesce many small desktop changes into a few larger updates thus saving network bandwidth. -economictranslate Use less memory-hungry pixel format translation. -lazytight Disable the "gradient" filter in Tight encoding (TightVNC-specific). The "gradient" filter often helps to improve data compression ratios, but may slow down the server performance. Please note that this filter is never used when a client enables JPEG compression in the Tight encoding. -desktop name Set VNC desktop name ("x11" by default). -alwaysshared Always treat new clients as shared, never disconnect existing client on a new client connection. -nevershared Never treat new clients as shared, do not allow several simultaneous client connections. -dontdisconnect Don't disconnect existing clients when a new non-shared connection comes in, refuse new connection instead. -viewonly Don't accept keboard and pointer events from clients. All clients will be able to see the desktop but won't be able to control it. -localhost Only allow loopback connections from localhost. This option is useful in conjunction with SSH tunneling. -interface ipaddr Listen for client connections only on the network interface with given ipaddr. -inetd Xvnc is launched by inetd. This option causes Xvnc to redirect network input/output to stdin/stdout. -compatiblekbd Set META and ALT keys to the same X modifier flag, as in the original version of Xvnc by AT&T labs (TightVNC-specific). BUGS
There are many security problems in current Xvnc implementation. It's recommended to restrict network access to Xvnc servers from untrusted network addresses. Probably, the best way to secure Xvnc server is to allow only loopback connections from the server machine (the -local- host option) and to use SSH tunneling for remote access to the Xvnc server. For details on SSH tunneling, see <URL:http://www.cl.cam.ac.uk/Research/DTG/attarchive/vnc/sshvnc.html> . SEE ALSO
vncserver(1), vncviewer(1), vncpasswd(1), vncconnect(1), sshd(1) AUTHORS
Original VNC was developed in AT&T Laboratories Cambridge. TightVNC additions were implemented by Constantin Kaplinsky. Many other people participated in development, testing and support. Man page authors: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>, Tim Waugh <twaugh@redhat.com>, Constantin Kaplinsky <const@tightvnc.com> August 2006 Xvnc(1)
All times are GMT -4. The time now is 05:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy