Skip to content

Commit

Permalink
update (Fri Dec 20 05:20:48 PM CST 2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry-Terrasse committed Dec 20, 2024
1 parent 63a7c15 commit bfad09d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@ record my journey in CS, gain from history, sometimes scandal.

### 12.20

#### Windows无法scp

报错:

```
scp: Received message too long 1347625027
scp: Ensure the remote shell produces no output for non-interactive sessions.
```

原因是PowerShell没有正确处理scp发起的非交互式会话,输出了额外的字符,导致scp异常

解决方案:

新建一个用户专用于scp,并编辑`C:/ProgramData/ssh/sshd_config`,禁用其TTY:

```
Match User <user_for_scp>
PermitTTY no
```

重启sshd服务:

```powershell
net stop ssh
net start ssh
```

#### 安卓熄屏不锁屏

有时需要保持安卓手机长期唤醒状态,但又不希望屏幕开着费电或者发生烧屏,可以关闭屏幕显示(需要ROOT):
Expand Down

0 comments on commit bfad09d

Please sign in to comment.