全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 1157|回复: 9
打印 上一主题 下一主题

小鸡失联了 在vnc 的grub 救援页面 , 在线等!

[复制链接]
跳转到指定楼层
1#
发表于 2023-4-27 10:34:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
网上找了一些代码貌似没有用!

2#
发表于 2023-4-27 10:43:02 | 只看该作者
参考这 https://ooly.cc/archives/linux/361/ 用tftp下载netboot的efi
3#
 楼主| 发表于 2023-4-27 12:15:56 | 只看该作者
xqdoo00o 发表于 2023-4-27 10:43
参考这 https://ooly.cc/archives/linux/361/ 用tftp下载netboot的efi

进不了 FS0 的页面

只有shell的页面
4#
 楼主| 发表于 2023-4-27 13:05:18 | 只看该作者
现在能进fs0页面了

然后

FS0:\> tftp ip地址  netboot.xyz-arm64.efi netboot.xyz-arm64.efi
TFTP error code 256
Unable to get the size of the file 'netboot.xyz-arm64.efi' on 'eth0' - TFTP Error
FS0:\>

ip地址  是我的另外一个小鸡 把netboot.xyz-arm64.efi 放在root目录下了 但是还是下不了啊
5#
发表于 2023-4-27 13:06:41 | 只看该作者
log 发表于 2023-4-27 13:05
现在能进fs0页面了

然后

远程机器的 tftp 服务没开么
你用别的机器试试能不能tftp 下载
6#
 楼主| 发表于 2023-4-27 13:14:27 | 只看该作者
aru 发表于 2023-4-27 13:06
远程机器的 tftp 服务没开么
你用别的机器试试能不能tftp 下载

另外一个小鸡的配置是这样的

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="小鸡ip:69"
TFTP_OPTIONS="-l -c -s"


这里的address 对吗? 是 0.0.0.0:69 还是我小鸡ip:69  ?
7#
发表于 2023-4-27 13:18:04 | 只看该作者
本帖最后由 aru 于 2023-4-27 13:20 编辑
log 发表于 2023-4-27 13:14
另外一个小鸡的配置是这样的

TFTP_USERNAME="tftp"


用0.0.0.0 或者 服务器的内网IP,不能用外网IP
或者直接是  TFTP_ADDRESS=":69"

文件要放在 /tftpboot 目录下
9#
 楼主| 发表于 2023-4-27 14:10:15 | 只看该作者
全部都装好了 然后可以在甲骨文的CLoud shell 里root 进去Debian

但是我用termius 就无法连接, 用的是root跟密码

当时在甲骨文面板里创建的时候是 ubuntu 跟密码登录的

那现在用terminus咋登录?
10#
 楼主| 发表于 2023-4-27 14:19:41 | 只看该作者
log 发表于 2023-4-27 14:10
全部都装好了 然后可以在甲骨文的CLoud shell 里root 进去Debian

但是我用termius 就无法连接, 用的是root ...

#       $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

Include /etc/ssh/sshd_config.d/*.conf

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile     .ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem       sftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#       X11Forwarding no
#       AllowTcpForwarding no
#       PermitTTY no
#       ForceCommand cvs server
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-13 22:30 , Processed in 0.062315 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表