Permission Denied when using SSH

I am trying to view and transfer files on a ZTE MF286D using putty. When I do so I receive "Permission denied". I have logged on via root and a password, and then, for example type: /tmp . In this location I have placed some files via SCP which then need to be used to upgrade the modem on the ZTE device.

Please treat me as an absolute idiot and start with the basics :slight_smile:

Is this device running OpenWrt? Which version?

Can you show us the specific commands you are entering and the error codes that result?

1 Like

This probably means that you didn't manage to login.

2 Likes

OK. Also, welcome to the community!

What did you do on PuTTY (i.e., commands entered, etc.)?

Can you log into the device normally?

So you succeeded, or is this the step you're experiencing an issue?

This statement seems to conflict. It's not clear if you successfully logged in.

OpenWrt SNAPSHOT r27842-3407269ba5 / LuCI Master 24.291.55886~ade3606

1 Like

Ha, that's what you think. But he actually was able to login and just tried to execute /tmp because he doesn't know how to use the Linux shell.

1 Like

I logged in successfully and receive a prompt i.e.

root@MF286D:~#

I enter /tmp i.e.

root@MF286D:~# /tmp
-ash: /tmp: Permission denied

1 Like

As @totkeks guessed correctly, you cannot execute /tmp.

You need to use a proper command like cd

cd /tmp
2 Likes

I did quite clearly state that I am an idiot :smiley:

2 Likes

Doh :man_facepalming:

Ok, just ignore me! Thank you all :slight_smile:

1 Like
2 Likes

Then let me teach you how to fish instead of giving you fish.

How to google the problem

How to ask GPT for an explanation

Rotten fish there sometimes. IJS...

1 Like

To be fair, GPT doesn't seem to see the obvious issue and gives some completely unrelated and wrong solutions:

1 Like

In that mindset...

3 Likes

Told you so.

1 Like

I had mixed experiences. But yes, when it comes to niche topics like Openwrt, the results are usually bad to very bad. Project is not cool enough to join the Javascript and Python gang. :disguised_face:

1 Like

Can we can tag you on all the posts that mention they are here because they used GPT.?

What does this mean?

Never seen those other messages with any of the LLMs.

But we are straying off the topic, which was already solved.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile: