更新 READM.txt
This commit is contained in:
@@ -40,3 +40,10 @@ Generating public/private rsa key pair.
|
|||||||
powershell
|
powershell
|
||||||
Get-Content ~/.ssh/id_rsa.pub | ssh root@10.150.117.190 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
|
Get-Content ~/.ssh/id_rsa.pub | ssh root@10.150.117.190 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
|
||||||
运行后只需要输入一次 Linux 密码,以后永远不用再输!
|
运行后只需要输入一次 Linux 密码,以后永远不用再输!
|
||||||
|
|
||||||
|
|
||||||
|
#时间戳问题
|
||||||
|
$LastSuccessTimestamp = [math]::Round($LastSuccessSession.EndTime.ToUniversalTime().Subtract((Get-Date "1970-01-01")).TotalSeconds, 0)
|
||||||
|
|
||||||
|
# 修改后的代码(毫秒级)
|
||||||
|
$LastSuccessTimestamp = [math]::Round($LastSuccessSession.EndTime.ToUniversalTime().Subtract((Get-Date "1970-01-01")).TotalMilliseconds, 0)
|
||||||
Reference in New Issue
Block a user