title: cd: Input/output error:  using SSHFs
link: http://jj.isgeek.net/2015/10/cd-inputoutput-error-using-sshfs/
author: Jj
description: 
post_id: 1008
date: 2015/10/19 23:07:48
created_gmt: 2015/10/20 04:07:48
comment_status: open
slug: cd-inputoutput-error-using-sshfs

My Linode had to reboot for some maintenance thing and after it I could not boot it. 

It would hang trying to mount a remote directory via SSHFS. 

After booting in rescue mode I noticed a couple of things. 

The internal IP address didn't start up. I needed to update my outdated `/etc/network/interfaces` not to use eth0:0 alias and add: 

` allow-hotplug eth0`

This is all [described on the static networking guide by Linode](https://www.linode.com/docs/networking/linux-static-ip-configuration), but I had my outdated file working fine. 

After that, and being able to reach the remote server I was able to mount the directory, but getting the following error trying to `cd` into it: 

`cd: Input/output error: `

Turns out, that even though I had keys setup between both hosts, I still needed to add the following option to my `fstab`: 

`user@host:/remote/path/ /local/path/ fuse.sshfs **identityfile:/home/USER/.ssh/id_rsa** ....`

The **identityfile** chunk was necessary. 

After those two fixes, I was able to boot my server normally.