mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-30 18:51:22 +00:00
Merge branch 'main' of github.com:hackerschoice/segfault
This commit is contained in:
commit
a3ffd7529e
@ -265,6 +265,7 @@ ${CN}${CF}$(cat "/config/guest/id_ed25519")
|
||||
${CDR}__EOF__
|
||||
${CDC}cat >>~/.ssh/config ${CDR}<<${CDR}__EOF__
|
||||
${CN}${CF}host ${SF_HOSTNAME,,}
|
||||
User root
|
||||
HostName ${SF_FQDN}
|
||||
IdentityFile ~/.ssh/id_${key_suffix}
|
||||
SetEnv SECRET=${SF_SEC}
|
||||
@ -272,10 +273,10 @@ ${CDR}__EOF__
|
||||
${CDC}chmod 600 ~/.ssh/config ~/.ssh/id_${key_suffix}${CN}
|
||||
######################################################################
|
||||
Thereafter use these commands:
|
||||
--> ${CDC}ssh root@${SF_HOSTNAME,,}${CN}
|
||||
--> ${CDC}sftp root@${SF_HOSTNAME,,}${CN}
|
||||
--> ${CDC}scp root@${SF_HOSTNAME,,}:stuff.tar.gz ~/${CN}
|
||||
--> ${CDC}sshfs -o reconnect root@${SF_HOSTNAME,,}:/sec ~/sec ${CN}
|
||||
--> ${CDC}ssh ${SF_HOSTNAME,,}${CN}
|
||||
--> ${CDC}sftp ${SF_HOSTNAME,,}${CN}
|
||||
--> ${CDC}scp ${SF_HOSTNAME,,}:stuff.tar.gz ~/${CN}
|
||||
--> ${CDC}sshfs -o reconnect ${SF_HOSTNAME,,}:/sec ~/sec ${CN}
|
||||
----------------------------------------------------------------------"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user