Ubuntu :: X11 Forwarding Via Ssh Connection - Doesn't Forward To Display To Local Machine

Jul 30, 2010

I am trying to run xeyes on a remote machine via ssh connection. Both my local and remote machines are Ubuntu 10.04. I connect to remote server via ssh -X and It does not forward to display to my local machine...

Code:
root@goliath:/opt/install/bits# ssh -X -l root duke
root@duke's password:
Linux duke 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
Ubuntu 10.04 LTS
[Code]....

View 6 Replies


ADVERTISEMENT

Ubuntu Servers :: SSH Server Connection OK For Local But Not For Remote Machine

Aug 14, 2010

I am having trouble to make my SSH server working with remote machine.

Code:
telnet 192.168.1.102 22

PHP Code:

[Code].....

View 9 Replies View Related

OpenSUSE Network :: Ssh Into Local Virtual Machine - Command Doesn't Work

Jul 18, 2011

I have an appliance called my_appliance.raw. To start the appliance locally, I use:

[code]...

After that I would like to ssh into the guest from the host but just the ssh command doesn't work. firewall is disabled on guest. the ip I use is the one that ifconfig shows when I run it on guest. sshd is running.

View 2 Replies View Related

General :: X11 Forwarding - Error: Can't Open Display: <ip Of Display>

Jun 28, 2011

I have the following scenario that doesn't seem to work normally. I have a windows 7 pc from which I am using putty to connect to my other linux servers (all running redhat 5 and 6). So here is the scenario that works and one that does not work. And I'm trying to figure out the one that does not work. Scenario that works:

From windows 7 (putty) I ssh into Linux_Server_1.
echo $DISPLAY
localhost:10.0

I run xclock and I see it pop up on my windows 7 pc. I am using xming on windows 7 to help me populate the display from linux to windows. One that does not work:

From windows 7 (putty) I ssh into Linux_Server_1. Then from Linux_Server_1 I ssh into Linux_Server_2.
echo $DISPLAY
<no output>

I try to setup $DISPLAY with localhost:10.0 or 0.0 or even my windows 7 pc ip address:0.0 ....etc Then when I try to run xclock I doesn't work.

I get these error messages: Error: Can't open display: <ip of display>

Also as a side note all our Linux servers are sitting on one subnet. My pc is sitting on another subnet. I use vpn to connect to the subnet where the servers sit from my pc.

View 4 Replies View Related

Ubuntu One :: Shows One "LOCAL MACHINE" Entry Which Doesn't Go Away

Mar 31, 2010

However, in the dialog which shows the connected computers to the account, I found that there are a lot of old computers (previously linked from my home computer, office computer, Virtual Box installations. Hence, I wanted to delete all these computer links and only add my home computer and office computer afresh. Hence I deleted all the computer links and in the end, it shows one "LOCAL MACHINE" entry which does not go away. Now, from my office computer (again Lucid Beta1)

I am able to access the Ubuntu One account and registered my office computer. But in my home computer I am unable to access Ubuntu One. I tried un-installing and then re-installing the Ubuntu One, but still does not work, and stubbornly displays only one entry as "LOCAL MACHINE" and I cannot figure out anyway how to add my home computer to Ubuntu One and access the same Is there some way to completely uninstall Ubuntu One (along with all settings) and then re-install?

View 8 Replies View Related

General :: Network Connection - Doesn't Assign Any IP Address To Machine

Feb 11, 2009

I have installed Ubuntu 8.10 Server Edition on Virtual Box. When I start the virtual machine I do not have connection to my home network. The router I have does not assign any IP address to this machine. Now I have some questions which I am finding hard to find answers for over the internet and other forums.

If I do have a network interface (I checked this using ifconfig -a) then is there a command to actually make the operating system connect to that network (something like repair on windows)?? Also what is the difference between a network interface with alias eth0 and eth5? I know that when it was eth0 the virtual machine used to connect to the network automatically. Now that it is eth5 it does not! I do not know however if this is related.

View 3 Replies View Related

Ubuntu Servers :: Exim4 Forwarding To Local Host

Jun 9, 2010

I've recently had to rebuild our mail server - after the old one over heated - and I've realised I never backed up the config files for exim... so now tyring to work out how the hell to configure what I had....

The setup isn't the most straight forward, so I'll try and explain what happens...

- all emails @longdomain.com are received by an hosted server on the internet
- they are then forwarded to @shortdomain.com, the IP for which is our internet connection which fowards port 25 traffic to the exim server
- the exim server then spam and virus checks the emails and forwards them to an exchange server (sorry but it works well for us)....

I've installed exim4/spamassassin/clamav successfully, and it's setup to receive emails for the relevant domains and relay from the hosted server on the internet (and some local addresses).

how I then setup exim4 to foward all emails on the relevant domains to the exchange server?

View 6 Replies View Related

Ubuntu Networking :: Forwarding A Port Behind A Local DNS Server?

Jul 9, 2010

Here's my (admittedly complex) situation:

I set up a dynamic DNS address for my home network. Let's call it [URL]. Then I set up one of my machines with a bind9 DNS server and pointed my router's DNS setting to it. I did this so that I could resolve awesome.server.com from machines inside my network and have them correctly find my server. Then I set up a second machine to serve web pages using [URL]. I did this by forwarding port 9200 on my router to port 80 on that machine. This works, but of course, it only works from outside my network.

What is the best way to get [URL] to work from inside my network?

I've tried setting up the iptables on my server to forward that port, but it just times out. I used these rules that I found by searching the internet:

Code:
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 9200 -j DNAT --to 192.168.0.300:80
iptables -A INPUT -p tcp -m state --state NEW --dport 9200 -i eth1 -j ACCEPT

However, those rules might be failing because they are intended to forward ports requested from outside the network. I must admit, this iptables stuff is way, way over my head. Is there a different method that I must use to make it work inside my network? Or is there a better way besides iptables?

View 1 Replies View Related

Ubuntu Networking :: Possible To Forward X11 From Windows To Machine?

Jan 28, 2010

Is it possible to forward X11 from Windows to a linux machine? Such as, running MS office or other software that runs on windows to your Linux desktop?

View 5 Replies View Related

Software :: Redirecting Remote Machine Audio To Local Machine?

Dec 26, 2009

Is there any way to redirect a remote Linux machine mplayer output audio to local one?

View 2 Replies View Related

Networking :: Forward Local HTTP Requests To Remote Proxy?

May 4, 2011

How to forward local HTTP requests to remote Proxy with IPTables ?

View 1 Replies View Related

Networking :: Forward One IP Address To A Machine To Get Rid Of Nat

Apr 12, 2010

My ISP can give me up to 5 ip addresses. Is it possible to "forward" one of them to a machine to get rid of nat? I was thinking of "forwarding" one public ip to my machine and let the rest of the network share one ip using nat.

View 7 Replies View Related

Ubuntu Networking :: Ssh X Forwarding Not Setting Display?

Feb 1, 2011

At home, I am running Ubuntu 10.04.1 LTS with openssh server OpenSSH_5.3p1 Debian-3ubuntu5 In my office, we are using CentOS 5.5 with openssh OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 Both my /etc/ssh/sshd_config at home and my ~/.ssh/config has X forwarding enabled.When I log in to my home machine from my office with ssh -X -vv host, I got the following:

Code:

debug2: x11_get_proto: /usr/bin/xauth list :0.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0

But once I log in, I get:

Code:

home:~>echo $DISPLAY
DISPLAY: Undefined variable.

I tried setting DISPLAY to localhostx.0 (xx from 0 to 10) but none of that works. I have also tried ssh -Y but the result is the same.

View 4 Replies View Related

Fedora :: Set The Display Size On X Forwarding?

Jul 22, 2010

How to set the display size avoiding taking up the whole screen.e.g.$ ssh -XC -c blowfish user@ip_address display:1 "gnome-panel"Does it take up the complete screen?

View 4 Replies View Related

Networking :: X Forwarding Through SSH Not Working: $DISPLAY Not Set

May 7, 2011

I am trying to redirect my display from a debian box that I ssh into to my laptop. I connect using

Code:
$ssh -vv -XC remote.host
and in the debug messages all I get about X is this

Code:
debug1: Requesting X11 forwarding with authentication spoofing.
Once I'm connected, X forwarding does not work. For example, when I try and start, say, xcalc, I get

Code:
$xcalc &
Error: Can't open display:

It seems that the problem is the $DISPLAY variable is not set on the remote machine (echo $DISPLAY doesn't return anything), but from what I read, sshd is responsible for setting this variable, as long as "X11Forwarding yes" is uncommented in the /etc/ssh/sshd_config file (which I made sure is true). Is there any other reason why sshd won't open a display on the remote host?

View 5 Replies View Related

Programming :: C Coding Hacking / Ssh Dynamic Local Port Forwarding Implementation?

Feb 3, 2010

From this thread I've decided to try add a feature of removing local port forwardings in ssh.Here are some very ugly and not-yet working hacks what I made so far:

* Patch for channels.c
* Patch for channels.h
* Patch for clientloop.c

I was clearly expecting this to work without any troubles-everything seem to be logically correct, but I made a programming mistake somewhere: don't know where, maybe you will point me to this?Many sites say there is a WAY AROUND with -D param(starting socks proxy as a tunnel-generator), added since 5.2, but I don't need that way around. I need a way through. I use exact ports for exact services and if I want to change it runtime I'd like to have ability to do so.If you have other ideas or points instead of coding this, please share them here & here(original question).

View 2 Replies View Related

Networking :: Forward SMTP Packets From Web Server To Another Machine?

Mar 8, 2010

I've a webserver at 10.10.0.55. Above in the hierarchy are managed network cisco switch / router and ASA firewall (the usual stuff). I also have a mail server at 10.10.0.200. I was told by the network admin that he can't forward port 80 to webserver and port 25 to mail server. Basically he said that it's a one-to-one (external.ip-to-internal.ip) mapping and all traffic, no matter what port it's destined for must go to 10.10.0.55. So, I turn to the wonder that linux is. The webserver is running Centos 5.4. Currently, all packets on port 25 are coming to the webserver. I want to forward all these packets to the email server. Note: the webserver only has one interface: eth0. I turned to web for help and did this in iptables:

Code:

$IPT -A FORWARD -p tcp -s 0/0 -i eth0 -o eth0 -d 10.10.0.200 --dport 25 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

It didn't work. I am assuming that since I only have one interface, a simple rule to the filter table and forward chain will not work.So i use the NAT table and try the following:

Code:

echo 1 > /proc/sys/net/ipv4/ip_forward
$IPT -t nat -A PREROUTING -p tcp -i eth0 --dport 25 -j LOG --log-prefix PortForward: --log-level 7
$IPT -t nat -A PREROUTING -p tcp -i eth0 -d 68.***.26.*** --dport 25 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to-destination

[code]....

First of all, since there is no service/daemon listening on port 25 on the webserver, is it even going to work? Isn't the webserver simply going to discard packets on port 25? I am assuming that packets go through the iptables first, and so iptables should route the packets to the email server, where there is postfix listening on port 25. Am i right? Also, as you can see in the code above, all packets coming on port 25 on the webserver should be logged. But they aren't. In order to troubleshoot, I'd like to at least know that packets are coming into the iptables. But since it's not logging, I can't find out what's wrong.

View 7 Replies View Related

Ubuntu Servers :: X Forwarding - Access Via Ssh A Virtualbox Guest Machine?

Mar 29, 2010

host - ubuntu 9.10 desktop
virtualizer - VirtualBox

What will be the easiest way to ssh connect a VM on VirtualBox, exporting its desktop to host, while it is already running ? I found; Howto Access via ssh a Virtualbox Guest machine.

[Code]...

View 4 Replies View Related

Ubuntu Security :: Stopped Forwarding All Ports To Machine In Router

Mar 1, 2011

This morning I was looking at the router's log file and noticed a certain IP address was able to gain LAN access on port 2222. That just happens to be the port my SSH server is listening on! A whois search revealed that IP address is in Germany. As soon as I found this out I stopped forwarding all ports to this machine in my router.

how to tell what had happened, what information this person was able to obtain, and if he left any goodies behind that could hurt me? I've read through some of the logs on my computer and haven't been able to find much at all. I did have some personal information on the hard drives, but that information is encrypted. I'm thinking if they were able to get my SSH password then that information probably isn't safe either (assuming they have some of it).

View 7 Replies View Related

Server :: Sendmail - Automatically Forwarding To Another Machine In LAN

Jan 26, 2010

How do I automatically forward mail to a different user on a different machine in my LAN? I have been beating my head for several hours trying to accomplish this. I have sendmail configured as an MTA solely to receive system mail from daemons. For my personal mail I just use KMail and POP. I want all mail on any system in my LAN to forward mail to my office system, where my normal account can receive the messages. Although my office machine is powered on the most often, the box is not available 24/7.

So any other system that can't immediately forward mail should keep that mail queued as long as necessary. I have no problem forwarding root's mail on each local machine to a local user account on that same machine. I have been able to forward the mails but not the way I want. The mails get forwarded to the local /var/mail/me location rather than into the remote office machine /var/mail/me. Adding another alias in the local /etc/mail/aliases has no effect.

Creating ~/.forward in the local user's home directory also has no effect. Both efforts always result in the mails being forwarded to the local location rather than remote. I can send user-to-user email to and from any machine on my LAN. There are no network problems between any machine. Basic forwarding does work, just not to a remote machine at a different account. I won't pretend to know much about mail systems, let alone sendmail.

View 6 Replies View Related

General :: X11 Forwarding Failed - Error: Can't Open Display: MAC_ip:0.0

Mar 31, 2011

I also had ever tried all methods they mentioned, but my problem is still there. I am using a MAC OS X 10.6 ssh a remote redhat server. I hope to see X of redhat on my own MAC. Below is what I've done: 'MAC_ip' stands for my mac; 'redhat_ip' stands for redhat server.

1) ssh to redhat server
2) change to root
3) type command: DISPLAY=MAC_ip:0.0
4) type command: export
5) Back to MAC
6) change to root
7) type command: xhost +Redhat_ip
8) vim /etc/ssh_config, add X11Forwarding yes
9) Back to redhat, type: xclock

I got below message: Error: Can't open display: MAC_ip:0.0 I also tried some methods to login as others suggested:

[Code]....

View 10 Replies View Related

Fedora Servers :: Port Forward On The Fly Or At Startup With Virt Machine Manager And Kvm-qemu?

Jan 6, 2010

I'm running some vm's in FC12 with kvm-qemu and using virt machine manager. I'd like to have some ports automatically forward on startup and be able to add redirections on the fly. Redirection on the fly is talked about here, but I am getting lost on what should be basic instructions.[URL]

As far as startup, In the past I just ran qemu from the cli and manually specified redirection with redir. I can't figure out how to do it with The virt machine manager which I am using to start my VM's now. I do not want the guests to see the host. From cli startup without virt machine manager, it looked like this: qemu -m 256 -hda vm.img -redir tcp:5555::80 -redir tcp:5556::445 &

View 2 Replies View Related

General :: Unable To Add Forward Map Connection Refused?

May 19, 2010

I work with RHEL, and have instaled DHCP server on it. Sometimes it is happen this bad behaviour:

May 19 10:52:34 alpha dhcpd: DHCPDISCOVER from 00:1f:3c:91:9b:ba (LENOVO-C3236B87) via 10.192.31.0
May 19 10:52:35 alpha dhcpd: DHCPOFFER on 10.192.31.230 to 00:1f:3c:91:9b:ba (LENOVO-C3236B87) via 10.192.31.0

[Code].....

View 2 Replies View Related

Networking :: Ip Forwarding Doesn't Work?

Feb 15, 2011

I have 2 guest machines on 1 VBox host installed : - one guest with hostname 'debian' is configured as follows and has IP Forwarding enabled to be able to route traffic from eht1 to eth0.

Code:
eth0 Link encap:Ethernet HWaddr 08:00:27:f1:ef:5f
inet addr:10.0.2.1 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef1:ef5f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

[Code]....

View 2 Replies View Related

Fedora Networking :: Getting A Machine To Update Its Machine Name In The DNS ServerSounds Doesn't?

Feb 20, 2011

I have an issue with the manner in which Network Manager is configuring the network and short of ditching Network Manager I can see no solution.The issue : Getting a machine to update its machine name in the DNS serverSounds simple doesn't it I operate a FreeBSD based firewall / DHCP / DNS server, using a default Network Manager DHCP configuration the Fedora clients do not register their names with the DNS server when they obtain an address.

I have traced the communications with Wireshark and the Fedora clients are NOT supplying the PC's hostname as part of the exchange so this is NOT a DNS server configuration issue. If I uncheck the option 'Automatically obtain DNS information from provider' under the DHCP settings the Fedora clients DO register the hostname that is put into the Hostname (optional) databox. They do NOT however store the DNS server IP address or any other records defined by the DNS server.

Is there some hidden settings or is this a bug because it isn't acceptable 'DHCP' behaviour if it isn't possible to automatically set DNS server IP addresses and at the same time register the hostname during the DHCP negotiation. Before it is said I know I can use a fixed DNS IP address but am not prepared to long term, I am also not prepared to define the Fedora clients with a 'static' IP. I am similarly not interested in playing around with scripts or any other such 'frigs' to achieve what should be a standard activity - registering a host with DNS during the DHCP negotiation.

View 3 Replies View Related

Ubuntu Networking :: Router : No Connection After Modifying Port Forwarding Settings

Sep 2, 2010

what I have: Belkin G Wireless Router Model F5D7234-4. To attempt to get Subsonic working, I changed the port forwarding settings (Belkin calls it Virtual Servers) to forward port 4040 to my desktop computer. I then saved changes, and my wireless disconnected. I waited about 3 minutes, and nothing was happening, so I restarted my router. This left me in the position that I am in now. Even when the router and modem are fully booted, the router does not broadcast my SSID. In addition, a wired connection will not connect to the network through the router. This leaves me completely unable to use wireless, and unable to change any settings in the router.

View 3 Replies View Related

General :: IPTables Drop Or Forward Host (Incoming Connection)

May 3, 2010

How can I drop or forward a incoming connection from a part of a host like *.alicedsl.de
For example:
The user is connection from *.alicedsl.de on port 12345
So how can I drop this connection or forward to google.com on port 80

View 5 Replies View Related

Debian :: X Forwarding - Connection Rejected Because Of Wrong Authentication

Jul 19, 2010

host - Debian 5.0 desktop
guest - Debian 5.04 desktop
KVM

On host running; $ ssh -XfC -c blowfish user@guest_IP xterm$ /usr/bin/X11/xauth:  error in locking authority file /home/user/.Xauthority X11 connection rejected because of wrong authentication. xterm Xt error: Can't open display: localhost:10.0 (hanging here) /home/user/.Xauthority is an empty file, just created. $ sudo ls -l /home/user/.Xauthority-rw-rw-rw- 1 user user 1 2010-07-19 03:16 /home/user/.Xauthority

Nor lock exists. The password is correct. $ ssh user@guest_IP xterm I can connect the guest.

View 2 Replies View Related

Networking :: Iptables - Forwarding On Router Doesn't Appear To Be Working

Sep 12, 2009

For the background, I'll be using my router as a firewall with snort-inline enabled. I got 3 NIC's: one for the WAN, the second will be bridged to the WAN NIC for queuing traffic which snort-inline requires, and the third is the LAN NIC (the computer I use for everyday work). Here's how I have my interfaces set up:

Code:

# /etc/network/interfaces
# Loopback interface
auto lo
iface lo inet loopback

[code]....

From what I understand, queuing needs to be set up on the bridge. From the documentation I've read it's done like this:

Code:

iptables -A INPUT -j QUEUE
And then to forward traffic, I did:

Code:

iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE

I've done this and am able to ping the router, obtain a DNS address from dnsmasq from the LAN computer. From the router I am able to connect to the internet (ping, links <address>...). From the LAN computer trafficking isn't getting forwarded, Firefox, links, ping all don't resolve.

View 7 Replies View Related

Networking :: IP Forwarding /NAT Doesn't Work After System Update?

Oct 22, 2009

I used the following 2 rules in iptables to forwarding some packagesiptables -t nat -A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination 192.168.0.244:8000iptables -t nat -A POSTROUTING -p tcp --dport 8000 -j MASQUERADEIt works perfectly before, the kernel was 2.6.18-92.1.22.el5.After we did a update, the kernel now is 2.6.18-128.7.1.el5.and the forwarding is stop.I just wondering where can I get some debug information. I checked /var/log/message, dmesg ... seems nothing there.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved