mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Compare commits
No commits in common. "3325bb3a4e34f441a4ab46bd3e8499764bae0ad0" and "b2e43f4bad256f24aa2c4ebb02c759c22108ad47" have entirely different histories.
3325bb3a4e
...
b2e43f4bad
2 changed files with 3 additions and 13 deletions
|
|
@ -199,12 +199,6 @@ hostname:token string. Place this string into $HOME/.xs_id to allow logins witho
|
|||
entering a password (obviously, $HOME/.xs_id on both server and client for the user
|
||||
should *not* be world-readable.)
|
||||
|
||||
```
|
||||
$ xs -g user@host.net >~/.xs_id
|
||||
```
|
||||
[enter password blindly, authtoken entry will be stored in ~/.xs_id]
|
||||
|
||||
|
||||
### File Copying using xc
|
||||
|
||||
xc is a symlink to xs, and the binary checks its own filename to determine whether
|
||||
|
|
|
|||
10
xs/xs.go
10
xs/xs.go
|
|
@ -1007,14 +1007,10 @@ func main() { //nolint: funlen, gocyclo
|
|||
})
|
||||
|
||||
if authCookie == "" {
|
||||
if !gopt {
|
||||
// No auth token, prompt for password
|
||||
fmt.Printf("Gimme cookie:")
|
||||
}
|
||||
// No auth token, prompt for password
|
||||
fmt.Printf("Gimme cookie:")
|
||||
ab, e := xs.ReadPassword(os.Stdin.Fd())
|
||||
if !gopt {
|
||||
fmt.Printf("\r\n")
|
||||
}
|
||||
fmt.Printf("\r\n")
|
||||
if e != nil {
|
||||
panic(e)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue