首页 \ 问答 \ Linux下ssh主机设置服务器域名解析问题

Linux下ssh主机设置服务器域名解析问题

我在办公室的sl6上开设了ssh服务,但是现在我在单位里的其他机器上只能通过: ssh 我的用户名@我的ip地址 来登录,其中我的ip为内部ip。在单位外无法直接ssh登录我的机器,只能通过先登录单位里的其他机器,再 ssh 我的用户名@我的ip地址 登录。 现在有两个问题: (1)如何才能在外面也能直接登录上我的机器? (2)如何设置可以不用 ssh 我的用户名@ip地址 而是ssh 用户名@hostname.hostdomain 来登录?
更新时间:2021-10-25 11:10

最满意答案

对象到关系的映射

其他回答

谁来交哈我嘛!

相关问答

更多
  • ORM是Object/Relation Mapping,Hibernate是实现了ORM的一个框架,用Hibernate也就是实现ORM的一种方法
  • 什么是ORM[2023-07-23]

    对象到关系的映射
  • 大多数ORM会让你运行adhoc查询。 学说有'doctrine2原生查询' 用'原始SQL查询'推进 Most ORMs will let you run adhoc queries. Doctrine has 'doctrine2 native queries' Propel with 'raw SQL queries'
  • 使数据访问更加抽象和便携。 ORM实现类知道如何编写供应商特定的SQL,所以你不必。 Making data access more abstract and portable. ORM implementation classes know how to write vendor-specific SQL, so you don't have to.
  • 我经常看到使用存储库模式来抽象ORM的代码。 这在99(9)%的项目中不需要。 程序员似乎正在通过一个事实,他们可以创建另一个抽象抽象的事实。 为什么我应该重新创建ORM已经给我的东西? 你不应该这样做,事实上,你创造了更多的问题,仅举几例: 客户是否明确要求功能在ORM之间轻松切换? 真? 你有这个预算吗? 你准备好为你的抽象引入测试覆盖率,你有这个时间和金钱 你有没有记录框架? 你有没有考虑设计时间来找出你可以支持的通用API? 缓存,分片,负载分配,存储过程,触发器怎么样? 您是否准备花时间升级到几个 ...
  • 查看我的SQLAlchemy解决方案, http://lepture.com/work/mysql-sqlalchemy/ 我已修复mysql已经消失,并有一个主从数据库的解决方案,并使其更容易使用。 对于表单部分,我在github上创建了一个项目: lepture / tforms以支持i18n,并修复了许多unform的wtforms错误,它可能不够好,冒了你的风险。 Check out my solution for SQLAlchemy, http://lepture.com/work/mysql- ...
  • 您可以在入门文档中找到所有信息。 对于Maven仓库来说,请看这里 。 You can find all informations in the Getting started documentation. For the maven repository see here .
  • spring没有自己的orm实现。 spring的orm是一个抽象层,它为你使用的实际orm实现添加了增强功能,如hibernate / JDO或JPA。 spring does not have its own orm implementation. spring's orm is a layer of abstraction that adds enhancements to the actual orm implementation that you use like hibernate/JDO or ...
  • ORM就像任何其他软件包一样。 你需要比较多个东西,它不是全部都可以或不可以。 我们来思考一下: 特征 文档 发展进步 速度 代码如何 社区 支持 你的优先事项可能与我的不同。 你需要一个面向未来的生产稳定产品吗? 或者你想要更先进的东西? An ORM is just like any other software package. You'll need to compare multiple things, it's not all about what it can and can't. Let's ...
  • 您可以通过and_where_open() / and_where_close()对OR语句进行and_where_open() (未经测试) $test = ORM::factory('Test') ->where('x', '=', 1) // 1 ->and_where_open() // 2 ->where('y', '=', 1) // 3 ->or_where('y', '=', 2) // 4 ->and_where_clo ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)