Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to login to remote server through telnet....
Code:
[vinay@localhost webhuddle]$ telnet 172.21.109.60
Trying 172.21.108.65...
Connected to 172.21.108.65.
Escape character is '^]'.
linux login: root
Password:
You have new mail in /var/mail/root.
Last login: Tue Dec 15 04:13:08 from 172.17.70.143
linux:~ #
Is there any way to remove the blank line which is coming after Escape character is '^]'.
I commented line in /etc/issue.net
Code:
#Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel %r (%t).
Earlier I was getting this message also..Now i am not getting this message...This is fine..But how to remove the blank line after Escape character is '^]'.
I am trying to login to remote server through telnet....
Code:
[vinay@localhost webhuddle]$ telnet 172.21.109.60
Trying 172.21.108.65...
Connected to 172.21.108.65.
Escape character is '^]'.
linux login: root
Password:
You have new mail in /var/mail/root.
Last login: Tue Dec 15 04:13:08 from 172.17.70.143
linux:~ #
Is there any way to remove the blank line which is coming after Escape character is '^]'.
I commented line in /etc/issue.net
Code:
#Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel %r (%t).
Earlier I was getting this message also..Now i am not getting this message...This is fine..But how to remove the blank line after Escape character is '^]'.
Thanks in advance.....
You have blank lines under the welcome message. Remove them...
I am not using .telnetrc file anywhere..I have to get rid of the blank line which is getting printed ?
im not sure...
have you tried completely blanking out /etc/issue.net?
i cant really test this now as im not in front of a suse machine. maybe if you have not got it sorted by the time i get home i can check it...
linux:~ # od -tc /etc/issue.net
0000000 # W e l c o m e t o S U S E
0000020 L I N U X E n t e r p r i s
0000040 e S e r v e r 9 ( i 5 8 6
0000060 ) - K e r n e l % r ( %
0000100 t ) \n
0000103
Now \n got removed form end, But issue remains the same...
Whereas, it works when there is no # at the beggining of the line /etc/issues.net like
Code:
linux:~ # od -tc /etc/issue.net
0000000 W e l c o m e t o S U S E
0000020 L I N U X E n t e r p r i s e
0000040 S e r v e r 9 ( i 5 8 6 )
0000060 - K e r n e l \ r ( \ l
0000100 ) . \n
0000103
linux:~ #
And i removed \n in the same way as is did before...
This time it is working, but Message Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel \r (\l).
is printing since hash is removed, My requirement is not to print message and blank line...Simultaneously both are not working....
linux:~ # od -tc /etc/issue.net
0000000 # W e l c o m e t o S U S E
0000020 L I N U X E n t e r p r i s
0000040 e S e r v e r 9 ( i 5 8 6
0000060 ) - K e r n e l % r ( %
0000100 t ) \n
0000103
Now \n got removed form end, But issue remains the same...
Whereas, it works when there is no # at the beggining of the line /etc/issues.net like
Code:
linux:~ # od -tc /etc/issue.net
0000000 W e l c o m e t o S U S E
0000020 L I N U X E n t e r p r i s e
0000040 S e r v e r 9 ( i 5 8 6 )
0000060 - K e r n e l \ r ( \ l
0000100 ) . \n
0000103
linux:~ #
And i removed \n in the same way as is did before...
This time it is working, but Message Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel \r (\l).
is printing since hash is removed, My requirement is not to print message and blank line...Simultaneously both are not working....
Hope you help me with this...Thanks once again...
Waiting with anticipation.....
this is not the best solution...but can you try with issue.net completely empty?? just back up the original..
Make sure there is no Carrier return at the beginning of
/etc/issue.net
Code:
cannabis:/home/repo# cat /etc/issue.net
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo# cat /etc/issue.net
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo#
BTW, you should use ssh instead of telnet
Dear repo,
Thanks for suggestion...
In your case it is working fine because it is printing some message when you login, please try to comment contents of /etc/issue.net and try...I hope it will give a blank line even if you remove \n at the end..
In your case it is working fine because it is printing some message when you login, please try to comment contents of /etc/issue.net and try...I hope it will give a blank line even if you remove \n at the end..
with comment contents of /etc/issue.net
Quote:
cannabis:/home/repo# cat /etc/issue.net
#Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
cannabis login: ^CConnection closed by foreign host.
cannabis:/home/repo#
this is not the best solution...but can you try with issue.net completely empty?? just back up the original..
Dear Centosboy,
I have not got the solution yet...I dont want to print either message or blank line
I have tried by making the file empty...It doesn't work...same blank line will appear..
Finally I removed /etd/issue.net and i tried
Code:
[vinay@localhost webhuddle]$ telnet 172.21.109.60
Trying 172.21.109.60...
Connected to 172.21.109.60.
Escape character is '^]'.
Linux 2.6.5-7.97-default (linux) (4)
linux login:
I dont know from where the message Linux 2.6.5-7.97-default (linux) (4)is coming ?
I have not got the solution yet...I dont want to print either message or blank line
I have tried by making the file empty...It doesn't work...same blank line will appear..
Finally I removed /etd/issue.net and i tried
Code:
[vinay@localhost webhuddle]$ telnet 172.21.109.60
Trying 172.21.109.60...
Connected to 172.21.109.60.
Escape character is '^]'.
Linux 2.6.5-7.97-default (linux) (4)
linux login:
I dont know from where the message Linux 2.6.5-7.97-default (linux) (4)is coming ?
Any help ?
/etc/issue?
like i said i cant really test as no suse...but im sure it cant be that much different from centos?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.