Friday, March 26, 2010

ssh connection refused

tried to scp or ssh from one openSUSE 11.2 (host A) to another openSUSE 11.2 (host B).

On host A I get the following:

# scp -vvv file.pdf user_name@192.168.1.7:/tmp
Executing: program /usr/bin/ssh host 192.168.1.7, user user_name, command scp -v -t /tmp
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.7 [192.168.1.7] port 22.
debug1: connect to address 192.168.1.7 port 22: Connection refused
ssh: connect to host 192.168.1.7 port 22: Connection refused
lost connection

On host B nothing in the logs, for testing I turned off the firewall to make sure it's not the culprit, although port 22 was already opened anyways. Didn't help.

Solution - on host B (192.168.1.7) :
---------

# rcsshd start

Monday, March 1, 2010

starting application after su _another_user_

While I'm logged in as user_1, I'd like to start an application for user_2 but I get a D-Bus session error:

username_1@hostname:~> su username_2
Password:
username_2@hostname:/home/username_1> /usr/bin/kmail
(25123)/: Cannot find the D-Bus session server


KDE4 Troubleshooting documents a solution to it:

"If you get
KUniqueApplication: Cannot find the D-Bus session server
make sure you can access the display, e.g. type
xclock
then a clock must appear on the screen. If it does and the error persists, start your shell using
start your shell using

dbus-launch xterm

and start your program in there."