File size: 1,272 Bytes
79ded74 9203625 |
1 2 3 4 |
linux clear && echo -e "\e[47;30mConnecting... to Kaggle 谷歌计算中心 \n GPU:Tesla T4 16G x2 \n RAM: 29GB \n 系统:Linux Ubuntu 22.04 \e[0m" && echo 正在获取SSH密钥用于远程连接... && curl -SL https://hf-mirror.com/datasets/nyan102/kagglemodel/resolve/main/kaggle/working/ssh_teminal/ssh_command_1.txt | bash || echo -e "\e[91m获取失败,请重试\e[0m" && echo 获取成功,正在进行远程连接... && chmod 600 ___KAGGLE_PRIVATE_SSH_KEY___ && ssh [email protected] -i ___KAGGLE_PRIVATE_SSH_KEY___ -p 12479 -L 7860:127.0.0.1:7860 -L 7861:127.0.0.1:7861 -Cg || echo -e "\e[91mssh连接失败,请根据报错自行检查原因\e[0m" Windows cls & echo Connecting... to Kaggle 谷歌计算中心 & echo GPU:Tesla T4 16G x2 & echo RAM: 29GB & echo 系统:Linux Ubuntu 22.04 & echo 正在获取SSH密钥用于远程连接... & curl -SL https://hf-mirror.com/datasets/nyan102/kagglemodel/resolve/main/kaggle/working/ssh_teminal/ssh_command_1.txt | cmd /q /k >nul 2>&1 || (echo 获取失败,请重试 & exit /b 1) & echo 获取成功,正在进行远程连接... & ssh [email protected] -i ___KAGGLE_PRIVATE_SSH_KEY___ -p 12479 -L 7860:127.0.0.1:7860 -L 7861:127.0.0.1:7861 -Cg || echo ssh连接失败,请根据报错自行检查原因 |