8

I have a .7z file which I need to extract the contents of. The problem is, that it's password protected and currently, I have to SSH into the server and enter the password. I would like to this without the need of this.

Is this possible?

I have tried:

7za x file.7z -ppassword pass

But does not work, just returns "No files to process"

don_crissti
  • 79,330
  • 30
  • 216
  • 245
Phorce
  • 195
  • 1
  • 1
  • 5

2 Answers2

12

This is a year+ late, but in case anyone else googles this, use:

7za x file.7z -p'your_password'

Wrapping the password in single quotes does the trick

PandaMan
  • 136
  • 1
  • 3
3

Seems like the command should be

7za x file.7z -pyour_password

Whereas "-ppassword pass" uses password "password" and tries to extract "pass" file from your archive.

Chupaka
  • 131
  • 2