sshd (remote desktop) server, dotpup package
sshd (remote desktop) server, dotpup package
an openssh deamon I made for myself, in case someone on the same boat as I was, here comes the package
notes:
1. includes openssh deamon and its configuration file
2. add user sshd
3. modify hosts.allow and hosts.deny
4. menu entries for all three WMs
5. registers to pupget manager
6. need either set password for root or a new user with password to remotely connect.
notes:
1. includes openssh deamon and its configuration file
2. add user sshd
3. modify hosts.allow and hosts.deny
4. menu entries for all three WMs
5. registers to pupget manager
6. need either set password for root or a new user with password to remotely connect.
- Attachments
-
- sshd-3.9p1.pup
- openssh server, version 3.9p1
- (133.9 KiB) Downloaded 7641 times
Here is what I did:
- Install the DotPup Package by clicking on the downloaded file from Rox
- If you are booting from CD, you need to create a /var/empty folder everytime
- Assign a password for root
- Run the daemon specifying the full path
If you want to see the options type
To test it just connect to local host from the same computer
Now you can try connecting from another computer.
- Install the DotPup Package by clicking on the downloaded file from Rox
- If you are booting from CD, you need to create a /var/empty folder everytime
Code: Select all
mkdir /var/empty
Code: Select all
passwd
Code: Select all
/usr/sbin/sshd
Code: Select all
sshd -h
Code: Select all
ssh localhost
Last edited by rarsa on Sun 26 Feb 2006, 05:53, edited 1 time in total.
If you don't assign password it won't work. SSH is by definition secure. It will always request a password and won't accept <empty> as password.If you put nothing after "passwd," will it work
So, the options are as djr originally explained:
A) Set a root password as I showed in the previous post
or
B) Create a user:
Code: Select all
adduser -h /root/rarsa -s /bin/bash rarsa
This command will do the following:
- Add a new user called rarsa
- Create a home directory /root/rarsa (normally the default would be /home/papa but in Puppy only /root is readwrite)
- Use bash as the default shell.
To connect as that user through ssh just execute the following command:
Code: Select all
ssh -l <user> <server address>
Code: Select all
ssh -l rarsa localhost
Great program, but I have a question. While I can connect to Puppy from other Puppy machines and my iBook, I can not get X11 to forward application windows. I get the error "Can't open display". I tried editing the file sshd_config and changed the line "#X11Forwarding no" to "#X11Forwarding yes" I then went to edit the ssh_config file but could not find it. Any ideas?
- CapeCodCDog
- Posts: 3
- Joined: Sat 19 Nov 2005, 15:48
- Location: Cape Cod, MA
I want to be able to "tunnel" x applications through ssh. I am having trouble getting the DISPLAY variable to be set automatically when I log in through ssh to the openssh (sshd). I do have the
X11Forwarding yes
in the sshd_config file.
The DISPLAY variable is not set at all (doesn't exist).
Here's a verbose log of my session:
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'xxx.xxx.xxx.xxx' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
root@xxx.xxx.xxx.xxx's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: Remote: No xauth program; cannot forward with spoofing.
Is this problem do to XAUTHORITY?
from the openssh.org FAQ
NOTE: For users of Linux Mandrake 7.2, Mandrake modifies the XAUTHORITY environment variable in /etc/skel/.bashrc, and thus any bash user's home directory. This variable is set by OpenSSH and for either of the above options to work, you need to comment out the line:
# export XAUTHORITY=$HOME/.Xauthority
Thanks in advance,
CapeCodCDog
X11Forwarding yes
in the sshd_config file.
The DISPLAY variable is not set at all (doesn't exist).
Here's a verbose log of my session:
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'xxx.xxx.xxx.xxx' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
root@xxx.xxx.xxx.xxx's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: Remote: No xauth program; cannot forward with spoofing.
Is this problem do to XAUTHORITY?
from the openssh.org FAQ
NOTE: For users of Linux Mandrake 7.2, Mandrake modifies the XAUTHORITY environment variable in /etc/skel/.bashrc, and thus any bash user's home directory. This variable is set by OpenSSH and for either of the above options to work, you need to comment out the line:
# export XAUTHORITY=$HOME/.Xauthority
Thanks in advance,
CapeCodCDog
- CapeCodCDog
- Posts: 3
- Joined: Sat 19 Nov 2005, 15:48
- Location: Cape Cod, MA
Thanks ...
I am able on a local network to manually set DISPLAY, i.e.:
export DISPLAY=192.168.0.12
and then start X apps. But this won't work if I'm coming in from outside through a router that is port forwarding, etc.
I was able to ssh in from the "outside" into a system running SuSE and the DISPLAY variable was set. I suppose I can try installing the other xserver (it will be on a "live-CD boot machine" so if I have too many problems it will be easy to start from scratch. Thanks again!
I am able on a local network to manually set DISPLAY, i.e.:
export DISPLAY=192.168.0.12
and then start X apps. But this won't work if I'm coming in from outside through a router that is port forwarding, etc.
I was able to ssh in from the "outside" into a system running SuSE and the DISPLAY variable was set. I suppose I can try installing the other xserver (it will be on a "live-CD boot machine" so if I have too many problems it will be easy to start from scratch. Thanks again!
OpenSSL version mismatch
When i try to run the sshd deamon I get this:
OpenSSL version mismatch. Built against 90704f, you have 90802f
what can I do to solve this?
OpenSSL version mismatch. Built against 90704f, you have 90802f
what can I do to solve this?
Re: OpenSSL version mismatch
Ooops.ostkaka wrote:When i try to run the sshd deamon I get this:
OpenSSL version mismatch. Built against 90704f, you have 90802f
Recompile with the current OpenSSL libraries included in Puppy.ostkaka wrote:what can I do to solve this?
So after all your download from the OpenSSL will be useful.
You will need to compile it or wait until I compile it maybe today.
You may want to read this Wiki page http://puppylinux.org/wikka/Compiling although I am noticing that people have edited after I cleaned it up and now it is quite confusing.
Bottom line:
1. Download devx_214.sfs (or the version that corresponds to your puppy) from here and put it in the same place as your pup_save.2fs file
2. Untar the file you downloaded and read me the corresponding README or INSTALL file. it will usually tell you to open a console, cd to the folder where you uncompressed the tar file and do something like the following
Code: Select all
./configure
make
make install
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
sshd
Hi rarsa,
I followed the instructions to compile openssh (and managed it finally, because I am a newbie with linux), but I still get the message
OpenSSL version mismatch. Built against 90704f, you have 90802f
How can I fix this? Do I have to remove a package or some files?
I followed the instructions to compile openssh (and managed it finally, because I am a newbie with linux), but I still get the message
OpenSSL version mismatch. Built against 90704f, you have 90802f
How can I fix this? Do I have to remove a package or some files?
I haven't had time to get at this. I'd recommend
1. Search the forum for OpenSSL
2. Open a new thread explaining your problem
I am sure people have seen this issue before with other programs (I think it was firefox)
1. Search the forum for OpenSSL
2. Open a new thread explaining your problem
I am sure people have seen this issue before with other programs (I think it was firefox)
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
-
- Posts: 3
- Joined: Wed 14 May 2008, 12:49
HI, I have problem:
I use puppy linux 4.0 and I do this for connect to remote pc:
# xhost +
#telnet xxx.xxx.xxx.xxx
#login
setenv DISPLAY xxx.xxx.xxx.xxx:0.0
then launch the application but i get the error can't open display.
In ubuntu i fixed thi error with gdmsetup then remove the mark on deny tcp connection, what i have to do i puppy dingo 4.0?
I use puppy linux 4.0 and I do this for connect to remote pc:
# xhost +
#telnet xxx.xxx.xxx.xxx
#login
setenv DISPLAY xxx.xxx.xxx.xxx:0.0
then launch the application but i get the error can't open display.
In ubuntu i fixed thi error with gdmsetup then remove the mark on deny tcp connection, what i have to do i puppy dingo 4.0?
Why don't you use the
?[/code]
Code: Select all
ssh -X xxx.xxx.xxx.xxx
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
-
- Posts: 3
- Joined: Wed 14 May 2008, 12:49