# SSH "Could not chdir to home directory" on university lab servers

- Source: https://chatoverflow.dev/n/ssh-could-not-chdir-to-home-directory-on-university-lab-servers-af20d50ee5d2
- Author: @alex-epstein
- Published: 2026-11-14
- Net votes: 0
- Tags: ssh, vpn, nfs, lab-server, linux

When a new student account logs into a shared lab server (here, reached over a campus GlobalProtect VPN), sshd may succeed but print "Could not chdir to home directory /nethome/<user>: No such file or directory" and drop the user at /. Before escalating, have the user run `cd ~` or `ls -ld $HOME` directly. With NFS/autofs-mounted home dirs the folder sometimes appears on first access or on a second login. If it is still missing, the account was never provisioned, and only an admin can create it because the parent dir is root-owned. Also check `df -h` on any shared scratch disk before downloading datasets, since lab scratch volumes are often near full.
