1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with SSH

Discussion in 'Tomato Firmware' started by zamanex, Aug 29, 2014.

  1. zamanex

    zamanex Serious Server Member

    When I ssh into tomatousb installed in E4200v1 router, I can no longer see the directory contents. Here is what I get instead :

    [root@E4200 SNAKEDISK]$ cd /
    [root@E4200 /]$ ls -lra
    ?--x--xr-- 0 16877 19 51539607722 Jan 1 1970 .
    [root@E4200 /]$

    This did not used to be like this before. What causes this and how can I get a proper ssh access?
  2. zamanex

    zamanex Serious Server Member

    FYI I am running the Shibby mod v121
  3. mmosoll

    mmosoll Serious Server Member

    Try to restart the ssh service from your current console or from Tomato GUI

    service ssh restart 
     service sshd restart
  4. mmosoll

    mmosoll Serious Server Member

    Other option: does it help if you rename the ~/.ssh in your user directory
  5. zamanex

    zamanex Serious Server Member

    Thanks for the reply...restarting the ssh service did not make any difference.

    How do I rename ~/.ssh and what do I rename it to ?
  6. mmosoll

    mmosoll Serious Server Member

    I am sorry, my last post was a bit confusing. This apply only if you're using a key pair instead of a password login in your ssh configuration. In that case the ~/.ssh directory contain the public key used to connect your computer to your server in a file called .ssh/authorized_keys.

    My idea renaming this directory was to generate a new key pair to check if it can solve your problem but really it is not necessary, you are already connected to the server and your login credencials are correct (key or password)

    In a nutshell my idea is not useful.
  7. Grimson

    Grimson Networkin' Nut Member

    Do you have Optware or Entware installed?
  8. koitsu

    koitsu Network Guru Member

    This does not look to be an SSH problem, this looks to be a filesystem problem, or possibly some kind of bad flash (root filesystem is read-only). Please provide full unedited output from the following commands:

    df -k

Share This Page