You are not logged in.
Installed Xfce Desktop on a Ubuntu 16.04 Desktop so that we could use RDP from our Windows laptop to it. While we the remote Desktop worked we failed to ssh to the Ubuntu Desktop from a putty client. The ssh session gets terminated immediately once the username and password is verified.
We tried to do a
$ sudo apt-get purge openssh-server and $ sudo apt-get install openssh-server
but the above issue remained. Before installing Xfce Desktop we were able ssh into the Ubuntu Desktop.
In the Putty log we noticed the below error
xrdb: Can't Open display
xfce4-session: Cannot open display
Regards,
Shankha
Offline
Hello and welcome.
It sounds like you have some code in your shell startup scripts that is trying to start an X program (xfce4-session).
How did you configure RDP on the linux box? Which configuration changes did you make?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hi,
I did the following to install & configure the xfce Desktop:
1a. $ sudo apt-get install xfce4
1b. $ sudo apt-get install xfce4-terminal
1c. $ sudo apt-get install gnome-icon-theme-full tango-icon-theme
Then
$ echo xfce4-session >~/.xsession
then
$ nano /etc/xrdp/startwm.sh
where I added "startxfce4" as the last line of the file
followed by:
$ sudo service xrdp restart
Offline
Does running ssh manually work (no putty)? Maybe its a configuration issue in putty.
If not, run ssh with "-vvv" (full verbose mode) and post back the output.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hi,
I am able connect using winscp. Also before configuring xfce Desktop I was able to connect using Putty so there is no such configuration issue on Putty.
Regards,
Shankha
Offline
Please post back the output of:
ssh -vvv HOST
...where HOST is the name or IP of the host you are trying to connect to.
Following your instructions above on Ubuntu 16.04 resulted in a working setup (both rdp and ssh). If winscp works, then it must be a configuration issue with putty or with ssh. The above command will help us to determine that.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.010 seconds, 8 queries executed - Memory usage: 536.05 KiB (Peak: 536.9 KiB) ]