# Trouble logging in via solid-shell

**URL:** <https://forum.solidproject.org/t/trouble-logging-in-via-solid-shell/2529>\
**Category:** General Discussion\
**Created:** [December 26, 2019, 9:03am UTC](https://forum.solidproject.org/t/trouble-logging-in-via-solid-shell/2529 "2019-12-26T09:03:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aveltens](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/aveltens/32/3987_2.png) [@aveltens](https://forum.solidproject.org/u/aveltens)\
**Post date:** [December 26, 2019, 9:03am UTC](https://forum.solidproject.org/t/trouble-logging-in-via-solid-shell/2529/1 "2019-12-26T09:03:25Z")

</div>

I am trying to access private data via @jeffz’s [solid-shell](https://github.com/jeff-zucker/solid-shell), but the authentication seems not to work. I placed a `.solid-auth-cli-config.json` in my home directory like this:

```json
{
  "idp" : "https://xyz.solid.community",
  "username" : "xyz",
  "password": "correct-password",
  "base": "https://xyz.solid.community"
}

```

Trying to access a private directory fails with `401`

```auto
▶ npx sol shell
logging in ...
logged in
> rf /private
fetching from https://xyz.solid.community/private
401 (Unauthenticated) https://xyz.solid.community/private/

```

Investigating this, I found out that the `session` resolved from `fc.login( )` is `undefined`…

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 26, 2019, 3:48pm UTC](https://forum.solidproject.org/t/trouble-logging-in-via-solid-shell/2529/2 "2019-12-26T15:48:43Z")

</div>

Sorry, it is using an old solid-auth-cli. Change the version of solid-auth-cli in the package.json to 1.0.10 and run npm install and the login for solid-shell should work. But if you’re looking for copy-folder … the new solid-file-client is due out next week and has a _much_ updated copy-folder. I’ll need to fix solid-shell to use it.

---

<div class="post-metadata">

**Author:** ![aveltens](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/aveltens/32/3987_2.png) [@aveltens](https://forum.solidproject.org/u/aveltens)\
**Post date:** [December 26, 2019, 6:38pm UTC](https://forum.solidproject.org/t/trouble-logging-in-via-solid-shell/2529/3 "2019-12-26T18:38:54Z")

</div>

Ah thanks, I am actually aiming for copy-folder, so I will wait for the new version and an updated solid-shell.
