Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > stuck with ssh !!

stuck with ssh !!
Thread Tools
ashishn
Forum Regular
Join Date: Oct 2004
Location: Pune, India
Status: Offline
Reply With Quote
Jun 6, 2008, 02:30 AM
 
I am running 10.4.11. Was planning to access home powerbook from work using vine.

I am behind WRT54G.

I am not unix person but can work around terminal and understand little abt unix so please someone guide me.

But facing issue with ssh. Tried forwarding port as described on PortForward.com - Free Help Setting up Your Router or Firewall, serup Vine, downloaded ARD client, enabled Remote Login from Sys pref.

Was following video guide at http://howto.diveintomark.org/remote-mac/ It is advised to use key based mehod rather than login.

I am at work and don’t have access to the video so will try to best describe from whatever I remember.

It asked to create .ssh dir, change its rights, bring in public keys from windows machine and move to .ssh, edited some files to change some prefs.

Followed till one point where a command is used to print the server keys but it didnt. Checked logs and it says 'cannot load /etc/ssh_host_rsa_keys'.

I am trying using an account with admin rights.

If i try "ssh 192.168.1.100" then also it doesnt succeed and same message appears in logs ie 'cannot load /etc/ssh_host_rsa_keys'.

Downloaded SSHHelper and used wizard to setup the ssh server but no luck. Generated keys for local user and tried ssh but still no luck.

Tried giving read rights to group and others but warning wass displayed in log that 'rights too open' so reverted back.

I have not installed new version of openssh on default setup.

is there a way to reset the whole ssh settings and start all over again? Or how do I get around this problem.

Can post more info from the system when I get back home.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 7, 2008, 01:08 AM
 
What is your goal? You can recreate your ssh keys simply by deleting ~/.ssh. Do you have a public/private key in this directory? /etc is a place where you can store keys for all users, but user keys are saved into ~/.ssh - I always work with user keys.

If it can't find your user key, you can easily create a public/private key pair. Have you done that before? There are a ton of guides about doing this, but I'm happy to help if you get stuck!
     
ashishn  (op)
Forum Regular
Join Date: Oct 2004
Location: Pune, India
Status: Offline
Reply With Quote
Jun 7, 2008, 05:38 AM
 
My aim is to create tunnel from work and access my home powerbook to do a few things. I read that vine can help and the video guide link seems to be the asnwer but I am facing issue doing ssh from powerbook account also.

I havent tried ssh before so a newbie. here is the extract from system.log after i tried a few things.

Appreciate if you can guide me or point towards any article which I can follow. I can work on terminal

====================================

Jun 6 01:26:08 Scorpio sshd[528]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 01:26:08 Scorpio sshd[528]: refused connect from 192.168.1.101
Jun 6 01:28:42 Scorpio sshd[565]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 01:28:42 Scorpio sshd[565]: refused connect from 192.168.1.101
Jun 6 01:34:55 Scorpio authexec: executing /Applications/SSH Helper.app/Contents/Frameworks/SSH.framework/Resources/sshd_control
Jun 6 01:34:55 Scorpio authexec: executing /Applications/SSH Helper.app/Contents/Frameworks/SSH.framework/Resources/sshd_control
Jun 6 01:35:14 Scorpio sshd[585]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 01:35:14 Scorpio sshd[585]: refused connect from 192.168.1.101
Jun 6 01:39:59 Scorpio sshd[592]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 01:39:59 Scorpio sshd[592]: refused connect from 192.168.1.101
Jun 6 01:45:12 Scorpio sshd[603]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 01:45:12 Scorpio sshd[603]: refused connect from 192.168.1.101
Jun 6 01:53:26 Scorpio sudo: ashishn : TTY=ttyp2 ; PWD=/Users/ashishn ; USER=root ; COMMAND=/bin/chmod 644 /etc/ssh_host_rsa_key
Jun 6 01:53:32 Scorpio sshd[615]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
Jun 6 01:53:32 Scorpio sshd[615]: error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
Jun 6 01:53:32 Scorpio sshd[615]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
Jun 6 01:53:32 Scorpio sshd[615]: error: Permissions 0644 for '/etc/ssh_host_rsa_key' are too open.
Jun 6 01:53:32 Scorpio sshd[615]: error: It is recommended that your private key files are NOT accessible by others.
Jun 6 01:53:32 Scorpio sshd[615]: error: This private key will be ignored.
Jun 6 01:53:32 Scorpio sshd[615]: error: bad permissions: ignore key: /etc/ssh_host_rsa_key
Jun 6 01:53:32 Scorpio sshd[615]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 01:53:32 Scorpio sshd[615]: refused connect from 192.168.1.101
Jun 6 01:54:06 Scorpio sudo: ashishn : TTY=ttyp2 ; PWD=/Users/ashishn ; USER=root ; COMMAND=/bin/chmod 600 /etc/ssh_host_rsa_key
Jun 6 01:54:13 Scorpio sshd[621]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 01:54:13 Scorpio sshd[621]: refused connect from 192.168.1.101
Jun 6 01:57:35 Scorpio sudo: ashishn : TTY=ttyp2 ; PWD=/Users/ashishn ; USER=root ; COMMAND=/usr/bin/nano /etc/sshd_config
Jun 6 01:58:16 Scorpio sudo: ashishn : TTY=ttyp2 ; PWD=/Users/ashishn/.ssh ; USER=root ; COMMAND=/usr/bin/nano /etc/sshd_config
Jun 6 01:59:56 Scorpio sudo: ashishn : TTY=ttyp2 ; PWD=/Users/ashishn/.ssh ; USER=root ; COMMAND=/usr/bin/nano /etc/sshd_config
Jun 6 02:00:40 Scorpio sshd[638]: error: Could not load host key: /etc/ssh_host_rsa_key
Jun 6 02:00:40 Scorpio sshd[638]: refused connect from 192.168.1.101
Jun 6 02:01:19 Scorpio sudo: ashishn : TTY=ttyp2 ; PWD=/Users/ashishn/.ssh ; USER=root ; COMMAND=/bin/cat /etc/hosts.deny
     
mattyb
Addicted to MacNN
Join Date: Feb 2008
Location: Standing on the shoulders of giants
Status: Offline
Reply With Quote
Jun 11, 2008, 05:36 PM
 
Why not try the free version of LogMeIn, instead. Thats a UK page, but there are other languages available. Works no issue between work (XP laptop behind a firewall) and my home iMac (behind an ADSL router).
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:02 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,