Find the answer to your Linux question:
Results 1 to 2 of 2
I am testing out VNC with my new Linux Machine. RHEL 6 64bit. I am very new to linux and I am trying to get the hang of it. I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    34

    VNC thru SSH


    I am testing out VNC with my new Linux Machine. RHEL 6 64bit.

    I am very new to linux and I am trying to get the hang of it.

    I can remote into my Windows Machine from my linux machine using just vnc and it works just fine but this is not secure.

    I try to configure my ssh session through putty and I either get a black screen that shows nothing or I get a connection refused error when try to connect my ssh connection.

    Any help is appreciated.

    Thanks!

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    On the RHEL box:

    Is the SSH daemon running?
    Code:
    service sshd status
    netstat -tulnp|grep sshd
    If not, start it:
    Code:
    service sshd start
    Is the firewall getting in the way? Temporarily disable it:
    Code:
    service iptables stop
    What is in your system logs?
    Code:
    tail /var/log/messages
    tail /var/log/secure
    When trying to log in with SSH/Putty, are you using a valid username for the RHEL box? The root account might be disabled by default. Also, check for a list of permitted users in the SSH daemon config file:
    Code:
    egrep -i ^'PermitRoot|AllowUsers' /etc/ssh/sshd_config
    To get more details on the SSH config file:
    Code:
    man 5 sshd_config

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •